statelyai / xstate

Actor-based state management & orchestration for complex app logic.
https://stately.ai/docs
MIT License
27.18k stars 1.26k forks source link

Visualizer does not work with always transitions #1956

Closed lanmonster closed 3 years ago

lanmonster commented 3 years ago

Description

https://xstate.js.org/viz/ cannot handle a machine that uses the always transition. it does not show that there is a valid transition and does not take it.

Expected Result

copy the machine from https://xstate.js.org/docs/guides/transitions.html#eventless-always-transitions into the visualizer update send the AWARD_POINTS event go to the win state

Actual Result

no transition is taken

Reproduction

Additional context

davidkpiano commented 3 years ago

Please use the XState inspector (CodeSandbox template) instead.

More info: statecharts.io