Handling Resource Disposal with Finalizers in Svelte When Fiber Gets Interrupted
Hi everyone, I'm trying to dispose my resources using finalizer but my finalizer isn't called when the fiber gets interrupted.
I manage to create an effect stream that listens to new messages over websockets when the component mounts. Next step is to close it when the component unmounts. This is the code I've got so far (in Svelte specifically):
I manage to create an effect stream that listens to new messages over websockets when the component mounts. Next step is to close it when the component unmounts. This is the code I've got so far (in Svelte specifically):
