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: Make the testing adapter clear the URL queue #764

Closed franky47 closed 1 week ago

franky47 commented 1 week ago

This caused issues in sequential tests where a test would update a query state, the URL update would be queued, but not flushed at the moment when the test finished, and the next test would then pick up the queued value in its initial state.

vercel[bot] commented 1 week 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 14, 2024 0:37am
pkg-pr-new[bot] commented 1 week ago

Open in Stackblitz

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

commit: 261cd95

github-actions[bot] commented 1 week ago

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

The release is available on:

Your semantic-release bot :package::rocket: