xstate-viz
xstate-viz copied to clipboard
Fix spinner lag
There is a noticeable (and confusing) lag between clicking the button and showing the spinner. It's because we first fetch the transpiled code from the tsWorker and the canvas/simulation is completely unaware of that fact.
It would be nice if we could rethink this sequence - perhaps as another issue.
Originally posted by @Andarist in https://github.com/statelyai/xstate-viz/issues/170#issuecomment-897552920