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

Visualizer pane keeps blinking

Open BasixKOR opened this issue 4 years ago • 2 comments

The visualizer pane keeps blinking even though nothing has changed.

BasixKOR avatar Oct 12 '21 09:10 BasixKOR

I am not able to reproduce this issue with the latest version v1.5.14. Is is possible you had a linter or jest running in the background causing this?

mdpratt avatar Feb 08 '22 09:02 mdpratt

@mdpratt I do still get this - it's a weakness with the way we render the visualiser. The fix for it would be:

  1. Make a PR to xstate-viz to allow for changing the visualised machine via postMessage
  2. Make the vscode extension communicate those messages

You would STILL get some blinking because of the way it's rendered. So then you'd need to:

  1. Change the way the elk rendering works to ensure that the current machine is on screen while the other one is being pre-rendered.

mattpocock avatar Feb 08 '22 10:02 mattpocock

This is being improved in https://github.com/statelyai/xstate-tools/pull/232 . When it comes to the visualizer - we might still do a full refresh when you actually edit the displayed machine but we avoid refreshing when unrelated parts of the code change.

Andarist avatar Nov 08 '22 15:11 Andarist