Skip to content

Commit 3385572

Browse files
fix(overmind): fix running indication on operators
1 parent 01b9ca2 commit 3385572

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/node_modules/overmind/src/operator.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,20 @@ import {
33
makeStringifySafeMutations,
44
createActionsProxy,
55
ORIGINAL_ACTIONS,
6-
MODE_TEST } from './utils'
6+
MODE_TEST,
7+
} from './utils'
78
import { EventType, Execution } from './internalTypes'
89
import { safeValue } from './Devtools'
910
import { IContext, IConfiguration, IOperator } from './types'
1011

11-
1212
export function operatorStarted(type, arg, context) {
1313
if (process.env.NODE_ENV === 'production') {
1414
return
1515
}
1616
const name =
1717
typeof arg === 'function' ? arg.displayName || arg.name : String(arg)
1818

19+
context.execution.isRunning = true
1920
context.execution.emit(EventType.OPERATOR_START, {
2021
...context.execution,
2122
name,

0 commit comments

Comments
 (0)