-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
[Feature]: Async Route Children #1576
[Feature]: Async Route Children #1576
Conversation
- Updated to throw an error when loadChildren is provided but is not a function. - Updated to create a regex that will match an async route and any children of that route.
Why don't you just use the async component syntax? How can the totality of your children routes config be so big that it needs to be lazy loaded? |
I would not dismiss the idea that child routes could become large. Doing so would dismiss the idea that Vue and Vue Router could be used for large enterprise applications. That said, I can certainly try that FR. Is there work underway on it? If not I can try adding it. Thinking out loud, that FR would require:
|
Thank you everyone for such quality work and awesome library! Any chance this will get merged in soon? |
any progress on this? |
1 similar comment
any progress on this? |
Any idea when this feature will be introduced? |
Thank you for the efforts put on this but I don't think this is worth pursuing given the points mentioned. |
Async loading of children allows complex child route configurations to be asynchronously loaded into an existing route. This allows developers to more easily split their applications into lazy loaded modules through the likes of Webpack. Only those async children that are routed to are loaded, no unnecessary HTTP calls or processing of children. The only limitation I can see so far with this feature is that nested async named routes are not supported since they are not loaded into the nameMap until the routes are resolved and injected into the router instance.
Example configuration: