https://stately.ai/docs/transitions#parent-to-child-transitions
So I'm confused why target: "endRoot" is broken here?
I'd assume all states would be unique per machine, so you can directly address them, & don't have to do fancy special prefixes to climb/drop-down the tree?
export const machinebuglonefinaloutside = createMachine({
id: "bug-lone-final-outside",
initial: "Inner",
states: {
Inner: {
id: "",
initial: "choose",
states: {
choose: {
on: {
"choose--endInner": {
target: "endInner"
},
"choose--endRoot": {
target: "endRoot"
}
}
},
endInner: {
type: "final"
}
}
},
endRoot: {
type: "final"
}
}
},
A transition is a change from one finite state to another, triggered by an event.