Replies: 2 comments 2 replies
-
Can't you just use |
Beta Was this translation helpful? Give feedback.
2 replies
-
maybe the shouldRevalidate function would be useful. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I have this solution for removing search params without reloading the page. But I am wondering if I monkey patch the pushState and replaceState of
window.history
is ok; or calling replaceState withwindow.history.state
will affect anything?I know that I can also use
useEffect
withuseSearchParams
hooks but I think by doing this, the search param will be removed as soon as the document is loaded.Here is my code:
Beta Was this translation helpful? Give feedback.
All reactions