How do you stop the Web Worker in the Editor? #2215
-
I can’t find a way to terminate the Web Worker for an editor instance. I have a React component that creates an editor, and when this component unmounts, I can remove the script, but the Web Worker remains in the browser’s memory. Over time, they accumulate. This isn’t an issue with the terminal, but it is with the editor. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@WiFi77 would it make sense to expose an Thoughts? /cc @ntoll |
Beta Was this translation helpful? Give feedback.
OK ... I went ahead and provided this MR #2216 ... if giving you a way to grab the
xworker
(which is just aWorker
instance) and explicitly.terminate()
it works for you, we should be good next release. I might publish that in npm first so you could play around ... would that be OK?