Skip to content

Commit 041c4ac

Browse files
fix(overmind): also evaluate parent execution in dev
1 parent d4b1dfd commit 041c4ac

File tree

1 file changed

+11
-9
lines changed
  • packages/node_modules/overmind/src

1 file changed

+11
-9
lines changed

packages/node_modules/overmind/src/index.ts

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -328,16 +328,18 @@ export class Overmind<ThisConfig extends IConfiguration>
328328
}
329329
})
330330
eventHub.on(EventType.ACTION_END, (execution) => {
331-
const flushData = execution.flush()
331+
if (!execution.parentExecution) {
332+
const flushData = execution.flush()
332333

333-
if (this.devtools && flushData.mutations.length) {
334-
this.devtools.send({
335-
type: 'flush',
336-
data: {
337-
...execution,
338-
...flushData,
339-
},
340-
})
334+
if (this.devtools && flushData.mutations.length) {
335+
this.devtools.send({
336+
type: 'flush',
337+
data: {
338+
...execution,
339+
...flushData,
340+
},
341+
})
342+
}
341343
}
342344
})
343345
}

0 commit comments

Comments
 (0)