lazy loading & chunk bundles
sysmat opened this issue · comments
Sysmat commented
Is your feature request related to a problem? Please describe.
- Some routes are accessible later so the component could be loaded as needed(something like angular)
- So in that regards is it possible to have chunk bundles (like angular)
Describe the solution you'd like
<Router {basepath}>
<main>
<Navbar />
<Route path="" component={Queries} />
<Route path="queries" component={Queries} />
<Route path="statistics" component={Statistics} lazy="true"/>
<Route path="status" component={Status} lazy="true"/>
</main>
</Router>
mefechoel commented
This is also possible with the help of a few little helper components. Checkout the lazy routes example as a starting point.
Again, I don't think this should be part of the libraries api, as it is relatively straight forward to implement yourself and might be a burden on users who don't use the feature.