xstate-tools icon indicating copy to clipboard operation
xstate-tools copied to clipboard

External/Internal switch is not persisting in VSCode editor

Open SimeonC opened this issue 3 years ago • 0 comments

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'
    }
  }
});

SimeonC avatar Jul 05 '22 03:07 SimeonC