Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to ONLY render the modal and not RE-RENDER the route behind the modal #65

Open
JeremyColton opened this issue Feb 13, 2021 · 0 comments

Comments

@JeremyColton
Copy link

JeremyColton commented Feb 13, 2021

Hi,

You wrote in your main doc page: 'To display a modal component "on top" of another component, both routes (the ModalRoute and the Route that renders the other component) must match.'

The downside is that when the modal is opened, the parent route's components are re-rendered which is a waste and slows down the modal's rendering! My parent route loads a heavy menu page. How can I stop the parent from re-rendering AND open the modal which has its own route?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant