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: Allow useQueryStates' state updater function to return null #871

Merged
merged 2 commits into from
Jan 23, 2025

Conversation

franky47
Copy link
Member

@franky47 franky47 commented Jan 22, 2025

This would allow conditionally clearing the URL based on the previous values.

image

Can't think of an immediately practical use-case, but when updating the type testing suite in #867, it felt like a blind spot in the API.

This would allow conditionally clearing the URL based on the previous
values.
Can't think of an immediate use-case, but when updating the type testing
suite in #867, it felt like a blind spot in the API.
Copy link

vercel bot commented Jan 22, 2025

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 Jan 23, 2025 11:12am

Copy link

pkg-pr-new bot commented Jan 22, 2025

Open in Stackblitz

npm i https://pkg.pr.new/nuqs@871

commit: 80b044f

@franky47 franky47 merged commit 894e141 into next Jan 23, 2025
27 checks passed
@franky47 franky47 deleted the fix/useQueryState-suf-returns-null branch January 23, 2025 14:05
Copy link

🎉 This PR is included in version 2.3.2-beta.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link

github-actions bot commented Feb 1, 2025

🎉 This PR is included in version 2.3.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@franky47 franky47 mentioned this pull request Feb 1, 2025
@franky47 franky47 removed this from the 🚀 Shipping next milestone Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant