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

Transition to specific parent ID state breaks rendering

Open liamjones opened this issue 3 years ago • 0 comments

Description

You can transition from a sub-state to a parent sibling via #id-of-parent. When this kind of transition is drawn in the Visualizer it seems to confuse the arrows between the sub -> parent and regular parent -> parent. The parent -> parent arrow doesn't connect to the target node anymore, it points to nowhere.

Expected Result

Transition arrow points at correct node

Actual Result

Transition arrow points to nowhere

Reproduction

https://stately.ai/viz/30ec2a2e-de6d-45f3-a555-7fd724ca8afc

Additional context

liamjones avatar Feb 19 '22 14:02 liamjones