Actor-based state management & orchestration for complex app logic.
26.98k
stars
1.24k
forks
source link
Bug: When child state transitioned to final state, did not trigger onDone event and transition to next state #4858
Open
lvchenyang opened 5 months ago
XState version
XState version 5
Description
The state machine define:
Child Component
ParentComponent
The question is when
Child Machine 1
button clicked, child state transitioned to final state, but parent state machine has no state transitions.Expected result
Child Machine 1
button clicked, showChild machine 2
button.Actual result
Always show
Child Machine 1
button.Reproduction
https://codesandbox.io/p/sandbox/child-state-example-2d5q5n
Additional context
No response