-
Notifications
You must be signed in to change notification settings - Fork 530
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
Url params not updating when using react-instantsearch-nextjs (after upgrade to 0.4.2) #6541
Comments
Hey @8byr0, Thanks for the reproduction. I see there are hydration problems at first, it may be related. I'm checking right now |
The hydration problem seems to only occur with the CSB preview window, it still works directly from that link : So it has to be something different. Do you have this hydration problem on your own environment ? Or something that updates the |
Thanks for checking ! I just checked and yes, I do have an hydration error. If I disable the faulty component then routing works properly. This error is not new, I had it before and it did not prevent routing with 0.4.1 |
Seems like my hydration errors come from the use of "useInstantSearch". If I use "useInstantSearchContext" then it works without errors Using
|
It's not intended, but at the same time we don't test if the implementation works even with hydration errors. Not sure whether it should be the case or not honestly, but I still went ahead and shipped a fix ! About Does the |
🐛 Current behavior
When using [email protected] with routing, url params are updated once, only after the first refinement is applied (refinement checked or query changed).
After that url is never updated again.
🔍 Steps to reproduce
Live reproduction
https://codesandbox.io/p/devbox/example-react-instantsearch-next-app-dir-example-forked-g7v9wp
💭 Expected behavior
Url should be updated anytime a refinement changes.
Reverting to [email protected] fixes the issue. Probably related to #6534
Package version
[email protected] [email protected] [email protected]
Operating system
No response
Browser
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: