mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-23 12:33:38 +00:00
disconnect intersection observer
This commit is contained in:
@@ -122,7 +122,7 @@ export default defineComponent({
|
||||
connection.on('readAllNotifications', () => readObserver.unobserve(elRef.value));
|
||||
|
||||
onUnmounted(() => {
|
||||
if (readObserver) readObserver.unobserve(elRef.value);
|
||||
if (readObserver) readObserver.disconnect();
|
||||
if (connection) connection.dispose();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user