fix: preserve query state across concurrent rebases - #1507
Conversation
Assert the stable committed sequence so affected adapters fail before the fix.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
commit: |
Bundle size
Brotli-compressed. Limits are set in the |
|
🚀 This PR is included in nuqs@2.9.3 The release is available on: |
React can rebase hook state while the latest optimistic value remains in nuqs refs. When the URL cache already holds that value, reconciliation must restore the rebased state instead of committing a brief revert.
The regression waits for the transition to settle and covers each adapter where the faulty sequence occurs.
Fixes #1506