Skip to content

useQueryState overload that returns all the URLSearchParams? #609

Answered by franky47
ChapterSevenSeeds asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ChapterSevenSeeds
Comment options

Answer selected by ChapterSevenSeeds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants