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 3a62624 commit b70ae62Copy full SHA for b70ae62
packages/node_modules/overmind/src/index.ts
@@ -475,12 +475,15 @@ export class Overmind<ThisConfig extends IConfiguration>
475
}
476
)
477
} else {
478
- action(
479
- this.createContext(execution, execution.getMutationTree()),
480
- value
+ Promise.resolve(
+ action(
+ this.createContext(execution, execution.getMutationTree()),
481
+ value
482
+ )
483
484
+ .then(() => resolve())
485
+ .catch(reject)
486
this.eventHub.emit(EventType.ACTION_END, execution)
- resolve()
487
488
})
489
0 commit comments