-
-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Old Query Param Value Gets Rehydrated After Navigation #774
Comments
Thanks for the report, I managed to reproduce it on the e2e test bench too, it looks like it's an issue only in useQueryStates: splitting the search params into individual useQueryState hooks doesn't show this behaviour. I'll have a look and report back. |
I think I have a fix in #776, could you try this and let me know if it fixes the issue on your end please?
|
That works just fine. Thanks. |
This was shipped in 2.2.2. |
Context
What's your version of
nuqs
?What framework are you using?
Which version of your framework are you using?
Description
When navigating pages with the link component the value of url state gets reset in url but when changing a different value of query params object the old value gets rehydrated.
Reproduction
CodeSandbox: https://codesandbox.io/p/github/tariwiencke/nuqs-bug/main?import=true
Steps to reproduce the behavior:
Go to Subpage
The text was updated successfully, but these errors were encountered: