useQueryState
overload that returns all the URLSearchParams?
#609
-
Hello. I am working on a page in a Next.js app (with the App Router) that stores a minified version of a nasty search query into the URL query params. This query undergoes frequent changes and I need the client to react immediately to these changes. Since learning that the Next.js App Router doesn't support shallow routing, I have stumbled across Nuqs and want to give it a try. However, to fit my use case, I would need a version of the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It's actually just a Next.js API, FYI, Next.js (app router) does support shallow updates now (on search params only), using the History API. That's what nuqs does under the hood. |
Beta Was this translation helpful? Give feedback.
It's actually just a Next.js API,
useSearchParams
. nuqs uses it internally, and adds a few things on top (mapping to one particular key, type-safety via parsing, and shallow/non-shallow updates).FYI, Next.js (app router) does support shallow updates now (on search params only), using the History API. That's what nuqs does under the hood.