Skip to content

Commit 934e66d

Browse files
fix(overmind): fix dev timeout on operators and typing
1 parent 2eabe02 commit 934e66d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/node_modules/overmind/src/internalTypes.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ export type Execution = {
6464
parentExecution?: Execution
6565
path: string[]
6666
emit(event: EventType, value: any): void
67-
flush(): {
67+
flush(
68+
isAsync?: boolean
69+
): {
6870
mutations: IMutation[]
6971
flushId: number
7072
}

packages/node_modules/overmind/src/operator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ export function createMutationOperator<ThisConfig extends IConfiguration>(
289289
clearTimeout(pendingFlush)
290290
}
291291
pendingFlush = setTimeout(() => {
292-
const flushData = mutationTree.flush(true)
292+
const flushData = context.execution.flush(true)
293293

294294
if (flushData.mutations.length) {
295295
context.execution.send({

0 commit comments

Comments
 (0)