getNextEvents returns xstate.done.event #5133
Unanswered
stovenator
asked this question in
Q&A
Replies: 1 comment
-
They should be filtered. A workaround is to filter events that don't start with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have a state machine with a parallel event that has an onDone event to trigger when all of the parallel tasks reach their final state. When I use the getNextEvents function from the migration page, it returns the available events, as well as an xstate.done.event .
Example using the Coffee Machine:
When I call getNextEvents() the return is.
The "xstate.done.state.coffee.preparing" event is not actually an event that can be sent to the actor.
Is there a reason the onDone event is listed here? Shouldn't xstate filter these xstate.done.event items from the list?
Beta Was this translation helpful? Give feedback.
All reactions