Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'children' of undefined when spawned machine is at the final state #2507

Closed
github0013 opened this issue Aug 11, 2021 · 0 comments · Fixed by #2508
Closed

Comments

@github0013
Copy link

Description
When you have multiple levels of machines in context by spawning machines, if a grand child machine's state is final, you get an error saying Cannot read property 'children' of undefined.

Expected Result
This error should not happen.

Actual Result
Cannot read property 'children' of undefined error occurs.

Reproduction

parent -> child -> grand child (final)
https://codesandbox.io/s/reverent-austin-uztit

parent -> child (final) this one won't throw the error.
https://codesandbox.io/s/empty-paper-s2l4u

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants