-
Notifications
You must be signed in to change notification settings - Fork 89
Rendering Issue #143
Comments
This does not appear to be a problem unique to And of course you don't have to have a single |
Thanks for your reply. I am of the impression that all routers applies lazy loading such that components only gets mounted when the component is navigated to. However, my interpretation of the comment from this article (https://blog.logrocket.com/how-react-hooks-can-replace-react-router/) is that all components are mounted even before the component is in view. Is that what you are referring to? |
Lazy instantiation, maybe? Lazy loading implies the JS code is only loaded when it's needed, which would normally be outside the purview of the router library.
Not at all. The Frankly, |
Hi,
I am in the process of deciding if I should try out this for my new project. However, I saw a comment on an article that is of concern.
Can I verify if this comment is true?
I quote -
"An issue that keeps coming up in larger applications is the number of components imported for a “routes” file, as it needs each component to render for every path defined. So the more routes you have the more components need importing."
Thank you.
The text was updated successfully, but these errors were encountered: