You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, you must pass an ActionReducerMap to StoreModule.forFeature(featureName: string, reducers: ActionReducerMap<any, any>). Sometimes, a feature module only needs a single reducer to be registered. By not allowing this, it will add an unnecessary intermediate step to get to the desired state.
Proposal:
Allow for StoreModule.forFeature(featureName: string, reducer: ActionReducer<any, any>).
Problem:
Currently, you must pass an
ActionReducerMap
toStoreModule.forFeature(featureName: string, reducers: ActionReducerMap<any, any>)
. Sometimes, a feature module only needs a single reducer to be registered. By not allowing this, it will add an unnecessary intermediate step to get to the desired state.Proposal:
Allow for
StoreModule.forFeature(featureName: string, reducer: ActionReducer<any, any>)
.Current functionality:
State interfaces
feature.module.ts
Feature selectors:
Desired functionality:
State interfaces
feature.module.ts
Feature selectors:
The text was updated successfully, but these errors were encountered: