Skip to content

Commit bc35336

Browse files
feat(overmind): add execution details to mutation event
1 parent 62f09ed commit bc35336

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/node_modules/overmind/src/createActionFactory.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ export default function createActionFactory<State, Context>(proxyStateTree) {
104104
proxyStateTree.startMutationTracking()
105105
cb(context.state, value)
106106
const mutations = proxyStateTree.clearMutationTracking()
107-
actionChain.emit('mutations', mutations)
107+
actionChain.emit('mutations', {
108+
mutations,
109+
...context.__execution,
110+
})
108111
}
109112

110113
const [

0 commit comments

Comments
 (0)