Skip to content

Option to pass queries to modals #201

@vuckookv3

Description

@vuckookv3

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions