Skip to content

Commit 1869e6f

Browse files
fix(overmind): fix operators related to revertable
1 parent 2058a91 commit 1869e6f

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

packages/node_modules/overmind/src/operator.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1+
import { safeValue } from './Devtools'
2+
import { EventType, Execution } from './internalTypes'
3+
import { IConfiguration, IContext, IOperator } from './types'
14
import {
25
IS_OPERATOR,
3-
makeStringifySafeMutations,
4-
createActionsProxy,
5-
ORIGINAL_ACTIONS,
66
MODE_TEST,
7+
ORIGINAL_ACTIONS,
8+
createActionsProxy,
9+
makeStringifySafeMutations,
710
} from './utils'
8-
import { EventType, Execution } from './internalTypes'
9-
import { safeValue } from './Devtools'
10-
import { IContext, IConfiguration, IOperator } from './types'
1111

1212
export function operatorStarted(type, arg, context) {
1313
if (process.env.NODE_ENV === 'production') {
@@ -173,6 +173,7 @@ export function createOperator<ThisConfig extends IConfiguration>(
173173
effects: context.effects,
174174
actions: context.actions,
175175
execution: context.execution,
176+
revertable: context.revertable,
176177
},
177178
context.value,
178179
(err, value, options = {}) => {
@@ -274,6 +275,7 @@ export function createMutationOperator<ThisConfig extends IConfiguration>(
274275
effects: context.effects,
275276
actions: context.actions,
276277
execution: context.execution,
278+
revertable: context.revertable,
277279
},
278280
process.env.NODE_ENV === 'production'
279281
? context.value

0 commit comments

Comments
 (0)