We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0695a7 commit 99baa51Copy full SHA for 99baa51
src/routing.ts
@@ -104,8 +104,10 @@ export const useSearchParams = <T extends Params>(): [
104
const location = useLocation();
105
const navigate = useNavigate();
106
const setSearchParams = (params: SetParams, options?: Partial<NavigateOptions>) => {
107
- const searchString = untrack(() => mergeSearchString(location.search, params));
108
- navigate(location.pathname + searchString + location.hash, {
+ const searchString = untrack(
+ () => location.pathname + mergeSearchString(location.search, params) + location.hash
109
+ );
110
+ navigate(searchString, {
111
scroll: false,
112
resolve: false,
113
...options
0 commit comments