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

Inspector is blank for machines with multiple global actions

Open el-dav opened this issue 3 years ago • 0 comments

When using the inspector in vs code the inspector panels goes blank when the machine contains multiple global actions.

To reproduce open the inspector in vscode with the following machine

import { createMachine } from 'xstate';

const machine = createMachine({
  id: 'machine',
  on: {
    A: { actions: 'ON_A' },
    B: { actions: 'ON_B' },
  },
  initial: 'HELLO',
  states: {
    HELLO: {},
  },
});

The result is shown in the following screenshot Screenshot 2022-02-10 at 16 10 36

This doesn't appear to be an issue in the visualiser on stately.ai as shown here

The expected result would be to display what we see in the stately visualiser

el-dav avatar Feb 10 '22 16:02 el-dav