Skip to content

Interface: MachineNodeData

API / @xmachines/play-router / MachineNodeData

Defined in: types.ts:9

The data on each node of the graph that represents the machine. It holds the state metadata that the route extraction and the queries need.

Properties

PropertyTypeDescriptionDefined in
meta?Record<string, unknown>The original meta object of the statetypes.ts:15
route?stringThe route path of meta.route, in its string formtypes.ts:17
stateIdstringThe XState state ID, for example “test.dashboard.overview”types.ts:11
type"atomic" | "compound" | "parallel" | "final" | "history"The state type of XStatetypes.ts:13