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

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