phiresky / sql.js-httpvfs

Hosting read-only SQLite databases on static file hosters like Github Pages
Apache License 2.0
3.47k stars 105 forks source link

Issues when used with xstate #32

Closed johtso closed 2 years ago

johtso commented 2 years ago

So I'm currently rewriting my app using xstate and building with Vite.

For some reason now that I'm initialising the worker in an xstate machine I'm getting lots of errors. Strangely it still seems to function fine though.

Initially I thought maybe there was an issue where the worker is being initialised twice.. but I don't think that's happening.

Out of curiosity, is there a way to clean up the worker safely?

Any thoughts on what might be going on here?

image

Edit:

Just figured out it's an issue with the xstate inspector, will investigate further..