You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In nested machines an event is needed to fall throught to start interact with a child machine.
When we have a child machine as a first state of a parent machine - initially we are in the parent machine. If we want to send an event to the child machine - we need to send any event to the parent machine. Only after that child machine will receive events.
Maybe this is just the expected behavior of Robot (in which case the docs should be updated to note “Robot will never immediately transition to a child machine; write your code accordingly”); OR,
Maybe there is a way to get this to behave as you want using immediate(); OR
In nested machines an event is needed to fall throught to start interact with a child machine.
When we have a child machine as a first state of a parent machine - initially we are in the parent machine. If we want to send an event to the child machine - we need to send any event to the parent machine. Only after that child machine will receive events.
There is a small example that reproduses the issue: https://codesandbox.io/s/robot3-react-nested-example-8dtcd
Is that expected behavior?
The text was updated successfully, but these errors were encountered: