We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7b7881 commit 52176bcCopy full SHA for 52176bc
src/context/search-state/SearchStateProvider.tsx
@@ -26,8 +26,10 @@ export const SearchStateProvider = ({ children }: Props) => {
26
setSearchParams(newParams);
27
};
28
29
- const resetSearchSettings = () =>
+ const resetSearchSettings = () => {
30
setSearchParams({ ...initialSearchParams, query: searchParams.query });
31
+ persistSearchParams(initialSearchParams, basePath);
32
+ };
33
34
const runSearch = (params: ContentSearchParams) =>
35
fetchSearch(params).then((result) => {
0 commit comments