mask all search params except one
Any idea how I could implement this?
I know when I mask, I have access to the previous value of the search params.
But if I'm doing the following navigation:
how can I only keep the
foo search param?1 Reply
absent-sapphireOP•2y ago
ah, for context: this is in a reusable
navigate function:
I was thinking that I could check the value of the search being passed into this navigate() wrapper, but the value of it is either true | object | function that returns an object so im not sure how to check if search.foo was defined