Skip to content

Commit

Permalink
fix: preserve history state
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Oct 6, 2022
1 parent d03c4c8 commit 8662e37
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const URLSearchParamsBuilder = () => {
}
});
url.searchParams.sort();
window.history.replaceState(null, '', url);
window.history.replaceState(window.history.state, '', url);
}, [pathname, touchedFields, values]);

return null;
Expand Down

0 comments on commit 8662e37

Please sign in to comment.