{
states: {
ready: {
on: {
GO_TO_A: {
target: ".a",
},
GO_TO_B: {
target: ".b",
},
GO_TO_C: {
target: ".c",
},
},
states: {
a: {},
b: {},
c: {},
},
},
},
}{
states: {
a: {
id: "a",
on: {
GO_TO_B: {
target: "b",
},
},
},
b: {
on: {
GO_TO_A: {
target: "#a",
},
},
},
},
}{
states: {
ready: {
always: [
{
target: "foo",
cond: "someGuard"
},
{
target: "bar"
}
]
},
foo: {},
bar: {}
},
}Use special property for eventless transitions
always
{
states: {
ready: {
on: {
EVENT: undefined
},
},
},
}