Skip to content

Commit 7168161

Browse files
fix(overmind): add execution to mutation operators as well
1 parent 60eb4d0 commit 7168161

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/node_modules/overmind/src/operator.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export function createMutationOperator<ThisConfig extends IConfiguration>(
219219
name: string,
220220
cb: (
221221
err: Error | null,
222-
context: IContext<ThisConfig>,
222+
context: IContext<ThisConfig> & { execution: Execution },
223223
value: any,
224224
next: (
225225
err: Error | null,
@@ -251,6 +251,7 @@ export function createMutationOperator<ThisConfig extends IConfiguration>(
251251
state: mutationTree.state,
252252
effects: context.effects,
253253
actions: context.actions,
254+
execution: context.execution,
254255
},
255256
process.env.NODE_ENV === 'production'
256257
? context.value

0 commit comments

Comments
 (0)