xstate-viz
xstate-viz copied to clipboard
Arrow from Event goes outside of the machine and doesn't connect to its target State
trafficstars
Description
I encountered a particular case where an arrow from an event doesn't connect with its state and it goes way outside of the statechart boundary. Have a look of this screenshot:

Expected Result
The arrow from "USER_REQUESTED_TO_SEARCH" event should connect with "Searching" state and shouldn't go outside of "App" machine.
Actual Result
The arrow from "USER_REQUESTED_TO_SEARCH" event didn't connect with "Searching" state and went outside of "App" machine.
Reproduction
https://stately.ai/viz/b004bbc5-d029-488b-be92-ac875b8e5f15
Additional context
It's reproducible on both https://stately.ai/viz on web browsers and the VS Code extension.