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

Spawned child is not interactive

Open jmakeig opened this issue 3 years ago • 1 comments

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

  1. Pull up the #Parent machine from the Actors tab
  2. Send a select event
  3. The child is successfully spawned
  4. Select the new child from the Actors tab
  5. 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

jmakeig avatar Mar 03 '22 07:03 jmakeig

Reading #326 more carefully, this appears to be the same symptom.

jmakeig avatar Mar 03 '22 07:03 jmakeig