Skip to content

Commit

Permalink
use named function
Browse files Browse the repository at this point in the history
  • Loading branch information
chentsulin committed Oct 7, 2019
1 parent c68f5d9 commit 4eb37c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function bottenderXstate({
onEvent,
onAction,
}) {
return async context => {
return async function Xstate(context) {
const transformedConfig = transformConfig(config, { events });
const machine = Machine(transformedConfig, { guards });

Expand Down

0 comments on commit 4eb37c7

Please sign in to comment.