Skip to content

Commit d4b1dfd

Browse files
fix(overmind): only trigger flushes of executions without a parent
1 parent efe6e12 commit d4b1dfd

File tree

1 file changed

+2
-2
lines changed
  • packages/node_modules/overmind/src

1 file changed

+2
-2
lines changed

packages/node_modules/overmind/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,8 @@ export class Overmind<ThisConfig extends IConfiguration>
301301
eventHub.on(EventType.OPERATOR_ASYNC, () => {
302302
proxyStateTree.getMutationTree().flush()
303303
})
304-
eventHub.on(EventType.ACTION_END, () => {
305-
proxyStateTree.getMutationTree().flush()
304+
eventHub.on(EventType.ACTION_END, (execution) => {
305+
if (!execution.parentExecution) proxyStateTree.getMutationTree().flush()
306306
})
307307

308308
let nextTick

0 commit comments

Comments
 (0)