Skip to content

Modals #127

Answered by tannerlinsley
mikecann asked this question in Q&A
Nov 25, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

If you want the modal visibility to be tied to the history and location, then yes, it should be based on the url and routing. How you do that is up to you. Some modals are hierarchical, some are global. If it’s the former, it makes sense to have it be a nested route that maybe renders into a portal. If it’s the latter, it probably makes more sense to render it at the root based on the presence of a search param.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mikecann
Comment options

@tannerlinsley
Comment options

Answer selected by mikecann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants