squiggle
squiggle copied to clipboard
Use `useTransition` in `useSimulator` hook
When Squiggle renders, there are two potentially blocking stages:
- Running Squiggle code in squiggle-lang
- Rendering the viewer (incl. canvas, etc.)
Webworkers will potentially solve (1), but for (2), we need to call useTransition. Then React will render the viewer in the background.