build(fix): search bar not clearing on navigation#1541
Conversation
|
@CodiumAI-Agent /describe |
Titlebuild(fix): search bar not clearing on navigation User descriptionDescriptionOnce we search for anything in the global search, after navigation the search is not cleared. With this PR it is fixed. Changes MadeUsing the useLocation from the react router, we will be able to get the current route with this we can clear the search. On every route change the search is cleared. How to Test
Notes
Navigated back to the window where the search was performed, the search is cleared.
PR TypeBug fix Description
Changes diagramflowchart LR
A["Route Change"] -->|triggers| B["useEffect hook"]
B -->|calls| C["configStore.setGlobalSearch('')"]
D["Option Selection"] -->|onClick| E["setRecentSearch"]
E -->|then| C
Changes walkthrough 📝
|
|
@CodiumAI-Agent /review |
|
@CodiumAI-Agent /improve |
…earch-bar-not-clearing-on-navigation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨
|
|
@CodiumAI-Agent /update_changelog |
|
Changelog updates: 🔄 2025-07-17 *Fixed
|




Description
Once we search for anything in the global search, after navigation the search is not cleared. With this PR it is fixed.
Changes Made
Using the useLocation from the react router, we will be able to get the current route with this we can clear the search. On every route change the search is cleared.
How to Test
Notes
Navigated back to the window where the search was performed, the search is cleared.