Skip to content

Using Modal routes with Remix #1308

Closed Answered by anubra266
anubra266 asked this question in Q&A
Discussion options

You must be logged in to vote

@cliffordfajardo I came up with this:
Basically all the code for the modal is in the page page, then the outlet is in the modal code, this way, the open and close transition is handled from the parent page, you can then pass an onClose method to the modal page through context, onClose should navigate back to parent of course.

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@cliffordfajardo
Comment options

Comment options

You must be logged in to vote
4 replies
@anubra266
Comment options

Answer selected by anubra266
@jamalsoueidan
Comment options

@Roanmh
Comment options

@aon
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants