Is there a way to provide query params when opening modals?
So I have some list component, that has in it's state like filter and other things...
And I need to open a modal while those filters are still being applied to component behind modal.
I have set up like this:
pages
todos
index.tsx
+newTodo.tsx
But when I call modals.open('/todos/newTodo'), the query params gets deleted, and I'm back to the initial state...
I am tried to provide options like at, but this only accepts string of type Path... I also can't see any option to provide query params
Also, I noticed that when I use back button in browser, the modal keeps appearing....
Is there a way to handle this, without switching over to state-based modals?
Is there a way to provide query params when opening modals?
So I have some list component, that has in it's state like
filterand other things...And I need to open a modal while those filters are still being applied to component behind modal.
I have set up like this:
But when I call modals.open('/todos/newTodo'), the query params gets deleted, and I'm back to the initial state...
I am tried to provide options like
at, but this only accepts string of type Path... I also can't see any option to provide query paramsAlso, I noticed that when I use back button in browser, the modal keeps appearing....
Is there a way to handle this, without switching over to state-based modals?