We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01b9ca2 commit 3385572Copy full SHA for 3385572
packages/node_modules/overmind/src/operator.ts
@@ -3,19 +3,20 @@ import {
3
makeStringifySafeMutations,
4
createActionsProxy,
5
ORIGINAL_ACTIONS,
6
- MODE_TEST } from './utils'
+ MODE_TEST,
7
+} from './utils'
8
import { EventType, Execution } from './internalTypes'
9
import { safeValue } from './Devtools'
10
import { IContext, IConfiguration, IOperator } from './types'
11
-
12
export function operatorStarted(type, arg, context) {
13
if (process.env.NODE_ENV === 'production') {
14
return
15
}
16
const name =
17
typeof arg === 'function' ? arg.displayName || arg.name : String(arg)
18
19
+ context.execution.isRunning = true
20
context.execution.emit(EventType.OPERATOR_START, {
21
...context.execution,
22
name,
0 commit comments