Skip to content

how can i pass query parmas in router.push? #505

Answered by franky47
parth25 asked this question in General
Discussion options

You must be logged in to vote

You can use a URL object and set the search params on it, or you can use the serializer helper to pass it your state values as JS entities (numbers, dates, object etc) and it will do the right serialisation for you while keeping it type-safe:

https://nuqs.47ng.com/docs/utilities#serializer-helper

Replies: 1 comment

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
Labels
None yet
2 participants