Skip to content

Why isn't this child machine receiving an event? #1833

Answered by Andarist
jackharding asked this question in Q&A
Discussion options

You must be logged in to vote

You have a bug in your schema. Instead of this:

INCREASE_TIME: assign<Context, any>({ /* ... */ })

you should declare this:

INCREASE_TIME: {
    actions: assign<Context, any>({ /* ... */ })
}

Could you report this as an issue? I believe we could do a better job at surfacing this kind of problems to users.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jackharding
Comment options

Answer selected by jackharding
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants