How to reset the query string? #180
Unanswered
jBernavaPrah
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I'm trying to reset the query string.
From my understanding of the documentation, I can do
setSearchParams({queryKey: 1 })
to set or update a key, but how can I remove this key (or completely remove all keys) from the query string?I already tried
setSearchParams({})
but does nothing.What I'm missing?
Beta Was this translation helpful? Give feedback.
All reactions