Can't open 2 routable modals #10228
Unanswered
thanhtran3k
asked this question in
Q&A
Replies: 1 comment
-
send help |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on a social media application which is similar to Instagram. I need to use the concept of routable modal for better UX following these articles:
https://dev.to/unorthodev/how-to-make-routable-modals-in-react-with-react-router-3hgp
Example: https://stackblitz.com/edit/react-routable-modal-ubkpar?file=src/Modal.jsx
But if I open a second modal inside of an existing modal, when I click backward (Or call history.goBack()) the first modal will reload completely. Any clues?
Expected: The (1) modal shouldn't be reloaded
Thanks for your time.
Beta Was this translation helpful? Give feedback.
All reactions