Skip to content

Commit 0c2a7cb

Browse files
fix(overmind): fix async actions in statecharts
1 parent 102bed6 commit 0c2a7cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/node_modules/overmind/src/config/statechart.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ export function statechart<C extends IConfiguration, S extends string>(
198198
return
199199
}
200200

201-
actions[key](context, payload)
201+
return actions[key](context, payload)
202202
}),
203203
mutate(function performTransition(context: any) {
204204
const stateTarget = getTarget(

0 commit comments

Comments
 (0)