Description:
When using useQueryParams hook to update search parameters, each update results in the addition of a new entry to the browser’s history.
Expected Behavior:
Ideally, updating search parameters should modify the current URL without creating a new history entry. This can be achieved by utilizing the window.history.replaceState() method.
Example:
const [query, setQuery] = useQueryParams();
setQuery({ page: 2 }); // Updates the URL's search and also adds a new history