Skip to content

How to change the search query parameters regardless of current route? #2620

Answered by BrendanC23
nuschk asked this question in Q&A
Discussion options

You must be logged in to vote

Does this work?

navigate({ to: ".", search: prev => ({ ...prev, ordering: "asc" }) });

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nuschk
Comment options

Answer selected by nuschk
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