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 }; }