Closed cinnamon-bun closed 3 years ago
It should subscribe to storage.onWillClose and close itself when the Storage is closing.
storage.onWillClose
React-earthstar doesn't do this; it should be done by the syncer.
React-earthstar just closes the Storage, not the syncer:
...when deleting a workspace
...when EarthstarPeer component is going away or setStorages is called
EarthstarPeer
setStorages
It should subscribe to
storage.onWillClose
and close itself when the Storage is closing.