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
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[ ] Feature request
[x] Documentation issue or request
[ ] Support request
"[...] This method defines the name of the feature state and the reducers that make up the state."
Expected behavior:
Docs should further clarifiy that passed feature name will be taken as the state slice name to compose the greater app state. Hence, that name will be also needed when slicing state with selector: store.select('featureName').
This would make quite clear that reducer map should not be:
I'm submitting a...
What is the current behavior?
Docs on feature module state composition only explains to invoke
forFeature
with a map of reducers with a given feature name:StoreModule.forFeature('featureName', reducers, { })
"[...] This method defines the name of the feature state and the reducers that make up the state."
Expected behavior:
Docs should further clarifiy that passed feature name will be taken as the state slice name to compose the greater app state. Hence, that name will be also needed when slicing state with selector:
store.select('featureName')
.This would make quite clear that reducer map should not be:
but instead drop the first level and go straight to the inner one:
Minimal reproduction of the problem with instructions:
Version of affected browser(s),operating system(s), npm, node and ngrx:
Other information:
The text was updated successfully, but these errors were encountered: