statelyai / xstate-tools

Public monorepo for XState tooling
183 stars 36 forks source link

Blank screen with multiple root events #187

Open VanTanev opened 2 years ago

VanTanev commented 2 years ago

This seems related to https://github.com/statelyai/xstate-viz/issues/279

Inspecting the following machine produces a blank screen in the vscode extension:

import { createMachine } from "xstate";

createMachine({
  on: {
    A: { actions: "a" },
    B: { actions: "b" },
  },
  states: {
    initial: {},
  },
});
davidkpiano commented 2 years ago

Thanks for the report; will investigate.

EDIT: This is due to the visualizer in the VS Code extension not using the latest version of the visualizer on stately.ai/viz (cc. @Andarist @mattpocock)