xstate-tools
xstate-tools copied to clipboard
Inspector is blank for machines with multiple global actions
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

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