generated from chiffre-io/template-library
-
-
Notifications
You must be signed in to change notification settings - Fork 256
Closed
Labels
bugSomething isn't workingSomething isn't workingfeature/time-safetyThrottle, debounce, anything related to keeping URL updates time-safe.Throttle, debounce, anything related to keeping URL updates time-safe.released
Description
Context
What's your version of nuqs?
"nuqs": "^2.8.2",
What framework are you using?
- ✅ Next.js (app router)
- ❌ Next.js (pages router)
- ✅ React SPA (no router)
- ❌ Remix
- ❌ React Router
- ❌ Other (please specify)
Which version of your framework are you using?
next: 16.0.7,
react: 19.0.0,
react-dom: 19.0.0
Description
There's an issue with the processUrlSearchParams callback when using the debounce update method on the NuqsAdapter.
When method: 'debounce' is set, the processUrlSearchParams callback is not executed. The callback works correctly with method: 'throttle'.
This issue occurs in both next.js 16.0.7 (app router) and react SPA environments.
Reproduction
Steps to reproduce the behavior:
- Go to https://codesandbox.io/p/sandbox/nuqs-testing-pt7hp8
- Click the "Update query state" button to trigger a state update
- The
processUrlSearchParamscallback in index.js does not fire - Change the
methodinlimitUrlUpdatesfrom'debounce'to'throttle'by clicking the other button - The
processUrlSearchParamscallback should execute correctly now
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingfeature/time-safetyThrottle, debounce, anything related to keeping URL updates time-safe.Throttle, debounce, anything related to keeping URL updates time-safe.released