Skip to content

Commit

Permalink
docs(store): document new behavior of createReducer for multiple acti…
Browse files Browse the repository at this point in the history
…ons of the same type (#2146)

Closes #2144
  • Loading branch information
chrstnbrn authored and brandonroberts committed Oct 5, 2019
1 parent 9a70262 commit 1728121
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/store/src/reducer_creator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,7 @@ export function on(
* @usageNotes
*
* - Must be used with `ActionCreator`'s (returned by `createAction`). Cannot be used with class-based action creators.
* - An action type should only be associated with at most one state change function, similar to switch statements.
* - In the case this is violated, the latest defined associated will be used (the latest `on` function passed).
* - An action can be associated with multiple state change functions. In this case the functions will be executed in the specified order.
* - The returned `ActionReducer` should additionally be returned from an exported `reducer` function.
* This is because [function calls are not supported](https://angular.io/guide/aot-compiler#function-calls-are-not-supported) by the AOT compiler.
*
Expand Down

0 comments on commit 1728121

Please sign in to comment.