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?
Edit:
Just figured out it's an issue with the xstate inspector, will investigate further..
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?
Edit:
Just figured out it's an issue with the xstate inspector, will investigate further..