nareshbhatia / mobx-state-router

MobX-powered router for React apps
https://nareshbhatia.github.io/mobx-state-router/
MIT License
227 stars 31 forks source link

code splitting : splitting of stores and other related components files - #118

Closed mnshgautam closed 3 years ago

mnshgautam commented 3 years ago

is there any support for code splitting using web pack plugin, based on routes, something similar to what react router supports https://reactrouter.com/web/guides/code-splitting @nareshbhatia

nareshbhatia commented 3 years ago

Hi @mnshgautam, haven't given this a thought. What we have is an example of lazy loading based on pages. Please see https://github.com/nareshbhatia/mobx-state-router/tree/mobx6-update/examples/suspense-lazy-loading.