statelyai / xstate-viz

Visualizer for XState machines
https://stately.ai/viz
MIT License
434 stars 102 forks source link

How do I use the visualizer to go from state to state without actions involved? #416

Closed suesther closed 1 year ago

suesther commented 1 year ago

Hi, I want the visualizer to show a state going to another state with a simple arrow without an action in between them? What would be the syntax to make this happen? Thanks!!

laurakalbag commented 1 year ago

Hi, I want the visualizer to show a state going to another state with a simple arrow without an action in between them? What would be the syntax to make this happen? Thanks!!

Hi @suesther. If you want your machine to always transition from one state to another without an event, you can use an eventless (always) transition.