Skip to content

onDone not being reached in children's invocation #1400

Answered by Andarist
ivorpad asked this question in General
Discussion options

You must be logged in to vote

This is structured in a quite weird way - your onDone is specific to the invoked "poster", it gets canceled when exiting the containing success state. You can't receive events from canceled children services and even if you would be able to receive them you wouldn't be able to process it here because by the time you would receive such event you would be already in the exit state which has no transition defined for this "done" event.

Side note: you can't use async functions within assign. This won't work correctly.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ivorpad
Comment options

@Andarist
Comment options

@ivorpad
Comment options

@Andarist
Comment options

Answer selected by ivorpad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants