Setting global search params
Hi, so I have this setup
and then in Root component I have this logic:
which works fine however when I try to set this search from somewhere I get a type error
as far as I understand I have to either provide "to" or "from" to navigate but I dont want to change the route I want to show the dialog on top of current page (and I dont know how to get "from" either). How can I do this properly?
4 Replies
fascinating-indigo•4mo ago
From : "."
harsh-harlequinOP•4mo ago
gives type error
Type '"."' is not assignable to type ...
but wait "to": "."
seems to do the trick!!fascinating-indigo•4mo ago
Yeap, thats right check the docs
In the docs they mentioned how to do it in search param section
harsh-harlequinOP•4mo ago
thank you