-
-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(serializer): Allow serializers to operate on derived UrlSearchParams
classes
#647
Conversation
…izer Follow-up to 47ng#646
@neefrehman is attempting to deploy a commit to the 47ng Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Could you please add a test to verify that the base parameter is no longer mutated?
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Co-authored-by: François Best <[email protected]>
@franky47 thanks for the review! I've just implemented the change and test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
praise: LGTM, thanks!
Sorry for the close/reopen, my CI workflow wasn't picking subsequent commits from external contributors (should be fixed in #649). |
#647) * Create a copy of `UrlSearchParams` when used as the base for a serializer Follow-up to #646 * Update packages/nuqs/src/serializer.ts Co-authored-by: François Best <[email protected]> * test: Add test to show that existing params are not mutated * chore: Fix formatting --------- Co-authored-by: François Best <[email protected]>
Follow-up to #646, that allows us to use the response from Next's
useSearchParams
, for example, as thebase
argument to aserializer
. To do this we create a copy ofUrlSearchParams
in this code branch.