xstate-tools
xstate-tools copied to clipboard
External/Internal switch is not persisting in VSCode editor
If you open the following machine in the vscode editor, the internal: false value doesn't get passed to the editor and subsequently is removed from the machine definition.
const machine = createMachine({
id: '(machine)',
initial: 'rest',
on: {
'Goto Other': {
target: 'other',
internal: false
}
},
states: {
rest: {},
other: {
exit: 'some action'
}
}
});