Skip to content

Partial serialize #639

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

You must be logged in to vote

Serialize can takes a base as its first argument, you can feed it:

  • A string (containing either a pathname, serialized search params on their own, or a combination of both)
  • A URLSearchParams object (could come from useSearchParams for the current ones)
  • a URL object

The second argument is the map of search params you want to serialize/merge on top of the base.

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
Category
Q&A
Labels
None yet
2 participants