Skip to content
Version: XState v5

Simulate mode

You can simulate your machine as if it were live using the Simulate button. Your machine will start in the initial state, and any possible events that can be triggered are highlighted in blue.

Simulate events

Press any available event to walk through your machine on the canvas or using the event buttons in the Simulation controls panel. Use Reset in the canvas tools to return to the initial state and clear the event log.

Simulate eventless (always) events

Eventless (always) events will be triggered instantly upon entering their source state unless they’re guarded with a condition.

Simulate delayed (after) events

Delayed (after) events will be taken automatically after completing the timer.

Event log

All triggered events are recorded, in order, in the Simulation controls panel, along with their target state. Press any event in the log panel list to return to that event. Press any state in the log panel list to return to that state.

Use Reset to return to the initial state and clear the event log.