xstate-tools
xstate-tools copied to clipboard
Visualizer pane keeps blinking

The visualizer pane keeps blinking even though nothing has changed.
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 I do still get this - it's a weakness with the way we render the visualiser. The fix for it would be:
- Make a PR to xstate-viz to allow for changing the visualised machine via postMessage
- 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:
- Change the way the elk rendering works to ensure that the current machine is on screen while the other one is being pre-rendered.
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.