This repository has been archived by the owner on Feb 25, 2024. It is now read-only.
Bug: onDone appears in state.nextEvents even if compound node is not in final state #403
Labels
bug
Something isn't working
Description
Given machine in initial state (see image),
state.nextEvents
includes an entry for the onDone transition. (And transition can be fired by clicking on onDone in the inspector)Expected result
state.nextEvents == [ "start" ]
Actual result
state.nextEvents == [ "done.state.test.First State", "start" ]
Reproduction
https://stately.ai/viz/dafd285c-17f4-429e-b16c-9b58d0e96222
Additional context
Local env is below, but viz URL for "Reproduction" above also shows onDone enabled and clickable (although State.nextEvents is not exposed in UI so I can't verify that it also includes an entry for it)
OS X 10.15.7
node v18.12.1
[email protected]
[email protected]
@xstate/[email protected]
@xstate/[email protected]
[email protected] running locally
The text was updated successfully, but these errors were encountered: