xstate-viz
xstate-viz copied to clipboard
Spawned child is not interactive
Description
Spawned child machine shows up as a new Parent -> Child actor, but it’s not interactive.
Expected Result
I’m pretty sure I‘ve been able to spawn child machines before and interact with them through the visualizer. I’m trying to reproduce a bug in a much more complicated machine and I fear I’ve done something dumb trying to simplify the representative parent and child machines.
Actual Result
When I fire the select event, my #Parent machine spawns a #Child machine instance. I can see the new Parent -> Child entry on the Actors tab and I can pull up the visualization. However, the visualization is not interactive through diagram or by sending JSON actions in the Events tab.
Reproduction
https://stately.ai/viz/30e5c6ec-11ee-4ec9-836e-938f0b4c58ec
- Pull up the
#Parentmachine from the Actors tab - Send a
selectevent - The child is successfully spawned
- Select the new child from the Actors tab
- Try to interact with it from the diagram or the Events tab
Nothing seems to happen and I don’t get any error messages in the console.
Additional context
Evergreen Chrome
Reading #326 more carefully, this appears to be the same symptom.