You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
React Router in v6 added the full support for managing the search parameters from the URL (a.k.a the part in the URL, which starts after ? and followed by pairs of key=value divided by & signs).
The main problem with the current API of searchParams is the ability to change a specific searchParam, without changing the rest of the parameters.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
React Router in v6 added the full support for managing the search parameters from the URL (a.k.a the part in the URL, which starts after
?
and followed by pairs ofkey=value
divided by&
signs).The main problem with the current API of
searchParams
is the ability to change a specificsearchParam
, without changing the rest of the parameters.For example:
/search?a=aaaa&b=b&c=c
/search?a=a&b=b&c=c
Now it can be done by very a weird way:
Is there any way to simplify this case?
Beta Was this translation helpful? Give feedback.
All reactions