Parent machine not invoked again after reaching child machines final state. #4379
Unanswered
OskarZaremba
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I have two state machines: parentMachine and childMachine. In the parent machine state "parentMachineState2", I am invoking the child machine. I have added a transition to the "parentMachineState3" onDone event of that child machine invocation so according to the official documentation I am expecting that when my child machine reaches its final state onDone in the parent machine will be triggered and it will transition to "parentMachineState3". Unfortunately, it never happens🤷♂️
Parent machine code
Child machine code
Here is the link to repo with my code --> https://github.com/OskarZaremba/learning-xstate
Can anyone please help me to sort it out? Otherwise, xstate is useless for me and I would have to search for other solutions🤷♂️
Beta Was this translation helpful? Give feedback.
All reactions