fix(nbstore): leave awareness when destroy (#10394)

This commit is contained in:
EYHN committed 2025-02-24 07:22:04 +00:00
1 parent 9bb74bce6b
commit a59e640423
1 file changed
+5
@@ -61,6 +61,11 @@ export class AwarenessFrontend {
handleSyncCollect
);
awareness.once('destroy', () => {
awareness.off('update', handleAwarenessUpdate);
unsubscribe();
});
return () => {
awareness.off('update', handleAwarenessUpdate);
unsubscribe();