Skip to content
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

fix: Cache the query string in useQueryStates #631

Merged
merged 2 commits into from
Sep 5, 2024
Merged

Conversation

franky47
Copy link
Member

@franky47 franky47 commented Sep 4, 2024

The cache key for testing if the query changed wasn't being updated in useQueryStates.

This also revealed it being broken in [email protected], where the history patching mechanism wasn't working. A fix has been added and will be removed in v2 (where support for those version ranges is dropped).

Closes #630.

Copy link

vercel bot commented Sep 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nuqs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 5, 2024 8:57am

Copy link

pkg-pr-new bot commented Sep 4, 2024

Open in Stackblitz

pnpm add https://pkg.pr.new/nuqs@631

commit: 5c6fc39

14.0.3 WHS doesn't have the sync mechanism in place,
so it's replaced by this effect. It will be removed in v2.
@franky47 franky47 merged commit 9dc148f into next Sep 5, 2024
18 checks passed
@franky47 franky47 deleted the fix/630-navigation branch September 5, 2024 09:44
Copy link

github-actions bot commented Sep 5, 2024

🎉 This PR is included in version 1.19.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

useQueryStates variables are not updating after page navigation
1 participant