Multiple stores in ngrx

I'd suggest setting up two feature states. Here are the relevant docs: https://github.com/ngrx/platform/blob/v5.2.0/docs/store/api.md#feature-module-state-composition

Though it isn't the same thing as having two separate stores it is the same for most practical purposes. The feature states are loaded when the module that imports StoreModule.forFeature('featureName', reducers) is loaded. You could do this lazy or eager. Each feature state will have access to root state so you can put common state on root state that both can access. Feature states should never reference each-other as they may not be loaded and that would negate the reason for having them.

Tags:

Angular

Ngrx