statelyai / xstate-viz

Visualizer for XState machines
https://stately.ai/viz
MIT License
434 stars 102 forks source link

Machine view is stuck on loading indicator when ELK throws #370

Open farskid opened 2 years ago

farskid commented 2 years ago

Description

In case of any runtime errors in ELK and how it renders the machine configuration, the viz is stuck on the loading screen.

Expected Result

An error screen is rendered showing the error message or even the error stack. Potentially, a way to report the bug to the Stately team is a bonus.

Actual Result

Loading screen is shown forever.

image

Reproduction

Try this machine: https://stately.ai/viz/161452bd-efb9-4ee5-bd93-879401dedfd5

zgotsch commented 2 years ago

@davidkpiano This example is fixed by #387.