Setting global search params
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?