Skip to content

urlKeys option support for serializers, after change in useQueryStates (v1.20) #672

Answered by franky47
NumberOneBot asked this question in Ideas
Discussion options

You must be logged in to vote

I've added a fix for this in #720.

createSerializer now accepts a second argument where you can specify both clearOnDefault: false (it still defaults to true to mirror useQueryState(s)' behaviour) and a urlKeys map to shorten your query keys (same as for useQueryStates).

You can try it here:

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

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by franky47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants