Skip to content

Commit c9d6a45

Browse files
jinderMikeRyanDev
authored andcommitted
fix(Store): Remove parameter destructuring for strict mode (#33) (#77)
1 parent 48a2381 commit c9d6a45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/store/src/state.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ export type StateActionPair<T, V extends Action = Action> = {
5757
action?: V;
5858
};
5959
export function reduceState<T, V extends Action = Action>(
60-
{ state }: StateActionPair<T, V> = { state: undefined },
60+
stateActionPair: StateActionPair<T, V> = { state: undefined },
6161
[action, reducer]: [V, ActionReducer<T, V>]
6262
): StateActionPair<T, V> {
63+
const { state } = stateActionPair;
6364
return { state: reducer(state, action), action };
6465
}
6566

0 commit comments

Comments
 (0)