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

Fix spinner lag

Open davidkpiano opened this issue 4 years ago • 0 comments

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

davidkpiano avatar Aug 12 '21 13:08 davidkpiano