From c9d6a4521a52a172f8575d00ba39c9b994e1fae1 Mon Sep 17 00:00:00 2001 From: Jinder Date: Fri, 14 Jul 2017 12:51:56 +0100 Subject: [PATCH] fix(Store): Remove parameter destructuring for strict mode (#33) (#77) --- modules/store/src/state.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/store/src/state.ts b/modules/store/src/state.ts index 296e3007fd..db37b7a839 100644 --- a/modules/store/src/state.ts +++ b/modules/store/src/state.ts @@ -57,9 +57,10 @@ export type StateActionPair = { action?: V; }; export function reduceState( - { state }: StateActionPair = { state: undefined }, + stateActionPair: StateActionPair = { state: undefined }, [action, reducer]: [V, ActionReducer] ): StateActionPair { + const { state } = stateActionPair; return { state: reducer(state, action), action }; }