47ng / nuqs

Type-safe search params state manager for React frameworks - Like useState, but stored in the URL query string.
https://nuqs.47ng.com
MIT License
4.86k stars 104 forks source link

fix: Update useQueryStates state cache when syncing from useSearchParams #776

Closed franky47 closed 2 days ago

franky47 commented 3 days ago

This fixes an issue where <Link> navigation (or external updates of the URL) kept an internal stale state ref and reused it when updating other search params.

Closes #763, #774.

vercel[bot] commented 3 days ago

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 Nov 19, 2024 10:29am
pkg-pr-new[bot] commented 3 days ago

Open in Stackblitz

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

commit: 6249b6c

github-actions[bot] commented 1 day ago

:tada: This PR is included in version 2.2.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: