From 17281210c3feac26e548f0ddff4675a7d3273844 Mon Sep 17 00:00:00 2001 From: Christina Braun <11138584+chrstnbrn@users.noreply.github.com> Date: Sat, 5 Oct 2019 19:42:34 +0200 Subject: [PATCH] docs(store): document new behavior of createReducer for multiple actions of the same type (#2146) Closes #2144 --- modules/store/src/reducer_creator.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/store/src/reducer_creator.ts b/modules/store/src/reducer_creator.ts index ce5ca0730d..2ec7b33733 100644 --- a/modules/store/src/reducer_creator.ts +++ b/modules/store/src/reducer_creator.ts @@ -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. *