|
| 1 | +import { safeValue } from './Devtools' |
| 2 | +import { EventType, Execution } from './internalTypes' |
| 3 | +import { IConfiguration, IContext, IOperator } from './types' |
1 | 4 | import { |
2 | 5 | IS_OPERATOR, |
3 | | - makeStringifySafeMutations, |
4 | | - createActionsProxy, |
5 | | - ORIGINAL_ACTIONS, |
6 | 6 | MODE_TEST, |
| 7 | + ORIGINAL_ACTIONS, |
| 8 | + createActionsProxy, |
| 9 | + makeStringifySafeMutations, |
7 | 10 | } from './utils' |
8 | | -import { EventType, Execution } from './internalTypes' |
9 | | -import { safeValue } from './Devtools' |
10 | | -import { IContext, IConfiguration, IOperator } from './types' |
11 | 11 |
|
12 | 12 | export function operatorStarted(type, arg, context) { |
13 | 13 | if (process.env.NODE_ENV === 'production') { |
@@ -173,6 +173,7 @@ export function createOperator<ThisConfig extends IConfiguration>( |
173 | 173 | effects: context.effects, |
174 | 174 | actions: context.actions, |
175 | 175 | execution: context.execution, |
| 176 | + revertable: context.revertable, |
176 | 177 | }, |
177 | 178 | context.value, |
178 | 179 | (err, value, options = {}) => { |
@@ -274,6 +275,7 @@ export function createMutationOperator<ThisConfig extends IConfiguration>( |
274 | 275 | effects: context.effects, |
275 | 276 | actions: context.actions, |
276 | 277 | execution: context.execution, |
| 278 | + revertable: context.revertable, |
277 | 279 | }, |
278 | 280 | process.env.NODE_ENV === 'production' |
279 | 281 | ? context.value |
|
0 commit comments