Hi Nrwl Team slightly_s…
Hi Nrwl Team :slightly_smiling_face:
Why nx
don’t use combineReducers
?
when I run those commands to create two state in one feature:
npm run nx -- g @nrwl/angular:ngrx products --module=libs/my-lib/src/lib/my-lib.module.ts
npm run nx -- g @nrwl/angular:ngrx favorites --module=libs/my-lib/src/lib/my-lib.module.ts
I get :
StoreModule.forFeature(
fromProducts.PRODUCTS_FEATURE_KEY,
fromProducts.reducer
),
EffectsModule.forFeature([ProductsEffects]),
StoreModule.forFeature(
fromFavorites.FAVORITES_FEATURE_KEY,
fromFavorites.reducer
),
EffectsModule.forFeature([FavoritesEffects]),
instead:
one StoreModule.forFeature(..
with combineReducers
one EffectsModule.forFeature([ProductsEffects, FavoritesEffects])