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 2eabe02 commit 934e66dCopy full SHA for 934e66d
packages/node_modules/overmind/src/internalTypes.ts
@@ -64,7 +64,9 @@ export type Execution = {
64
parentExecution?: Execution
65
path: string[]
66
emit(event: EventType, value: any): void
67
- flush(): {
+ flush(
68
+ isAsync?: boolean
69
+ ): {
70
mutations: IMutation[]
71
flushId: number
72
}
packages/node_modules/overmind/src/operator.ts
@@ -289,7 +289,7 @@ export function createMutationOperator<ThisConfig extends IConfiguration>(
289
clearTimeout(pendingFlush)
290
291
pendingFlush = setTimeout(() => {
292
- const flushData = mutationTree.flush(true)
+ const flushData = context.execution.flush(true)
293
294
if (flushData.mutations.length) {
295
context.execution.send({
0 commit comments