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

Show an example of code splitting #15

Open
SethDavenport opened this issue Feb 22, 2017 · 2 comments
Open

Show an example of code splitting #15

SethDavenport opened this issue Feb 22, 2017 · 2 comments

Comments

@SethDavenport
Copy link
Member

SethDavenport commented Feb 22, 2017

The code is already organized into a lions module and an elephants module. In a larger app, we'd want to code split these such that needed code is only loaded when the relevant app route is activated. Redux introduces some challenges here but they're not insurmountable. How can we:

  • only load the elephants components, actions, and epics when the elephants route is accessed?
  • same thing for the lions stuff?
  • same thing for the feedback stuff?

Ideally we webpack would output code chunks for these routes and load them on the fly.

@murraybauer
Copy link

'Factal' state management for code splitting/lazy loaded modules is planned for the next release of ngrx as well. (ngrx/store#379)

@SethDavenport
Copy link
Member Author

We've released fractal state management in 6.4.0. Details here: https://github.com/angular-redux/store/blob/master/articles/fractal-store.md

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

No branches or pull requests

2 participants