Skip to content
This repository was archived by the owner on Dec 10, 2023. It is now read-only.

fix(remix-pagination): preserve multiple values for search params#4

Open
mquinnv wants to merge 2 commits intoIgnisDa:mainfrom
mquinnv:main
Open

fix(remix-pagination): preserve multiple values for search params#4
mquinnv wants to merge 2 commits intoIgnisDa:mainfrom
mquinnv:main

Conversation

@mquinnv
Copy link

@mquinnv mquinnv commented Apr 20, 2023

prior to this patch, URLSearchParams was being passed through Object.entries, which makes multiple values for the same param, e.g. q=3&q=4&q=5, be replaced with only one entry q=5. using URLSearchParams for the entire process of creating the page link (instead of the ufo library) resolves this problem

fixes #3

…aram

prior to this patch, URLSearchParams was being passed through Object.entries, which makes multiple
values for the same param, e.g. q=3&q=4&q=5, be replaced with only one entry q=5. using
URLSearchParams for the entire process of creating the page link (instead of the ufo library)
resolves this problem
@IgnisDa
Copy link
Owner

IgnisDa commented Apr 21, 2023

Thank you! It looks like this removes the ufo dependency. If yes, could you please also remove it from package.json?

@mquinnv
Copy link
Author

mquinnv commented May 10, 2023

i think i did that properly. i've not used pnpm or this build system before

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Search parameters with multiple values condense to one value

2 participants