-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Docs: Add docs for reducer creators #1762
Comments
I'll take it |
👍 |
I think it would be beneficial to mention providing the reducers for AoT. export function reducer(state, action) {
return createReducer(...);
}
StoreModule.forFeature('feat', reducer) |
Just for clarity, we're generating the reducer outside the exported function in the schematics, but the point still remains. const someReducer = createReducer(...);
export function reducer(state: SomeState | undefined, action: Action) {
return someReducer(state, action);
}
StoreModule.forFeature('feat', reducer) |
Putting it for myself so I don't forget all the info that's needed:
|
Could How about something like
|
I don't think this is something we would add @fxck . We're still reacting to unique actions. |
Yeah, well since you have to do this anyway #1762 (comment) I can live without that. :) |
@fxck I think that could result in more brittle logic. |
Follow-up to #1746
createReducers
The text was updated successfully, but these errors were encountered: