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

Feature Modules Fractal State & Preloading Modules #54

Closed
Kaffiend opened this issue Jul 2, 2017 · 1 comment
Closed

Feature Modules Fractal State & Preloading Modules #54

Kaffiend opened this issue Jul 2, 2017 · 1 comment

Comments

@Kaffiend
Copy link

Kaffiend commented Jul 2, 2017

Just curious and I'm still trying some things out for how i want to structure my state, I plan to have a few Large Modules comprised of several smaller modules within each and I'm wanting to introduce feature state and reducers lazily, and some eager modules with root state. Does changing the angular preloading strategy for instance to PreloadAllModules effect state composition when using the forFeature module loading of state?

@brandonroberts
Copy link
Member

Yes it does. If your feature module is preloaded, it's feature state will be loaded along with it. If you want more control over loading state you can inject the ReducerManager which has methods to add/remove reducers.

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

No branches or pull requests

2 participants