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

chore: Update nuqs to v2 #282

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

franky47
Copy link

Aside from the adapter in layout.tsx, the main impactful change seems to be about clearOnDefault which is now true by default.

That means any search param with a default value will remove itself from the URL when the default value is set.

Let me know if there are mission-critical params that you need to keep and I'll update the PR.

Migration guide: https://nuqs.47ng.com/docs/migrations/v2

This actually sets clearOnDefault: true by default, which was omitted from the v2 release.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants