Replies: 1 comment 5 replies
-
You're trying to jump from a state in one machine to a state in a completely different machine. That doesn't make sense. Neither of those machines can know the states of each other. What you have to do instead is send an event to the parent machine, via |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello guys, I'm new to xstate and probably missing something basic. After lots of doc reading and experimenting, I can't find a way to exit a child state.
The goal is to enter a child state, run an async task there and then when it's completed, automatically jump to a parent state.
The error I get currently is:
I have the following setup:
Beta Was this translation helpful? Give feedback.
All reactions