disconnect intersection observer

This commit is contained in:
tamaina 2021-11-22 16:14:22 +09:00
parent d3946ab5e0
commit 3739cb7306

View file

@ -122,7 +122,7 @@ export default defineComponent({
connection.on('readAllNotifications', () => readObserver.unobserve(elRef.value)); connection.on('readAllNotifications', () => readObserver.unobserve(elRef.value));
onUnmounted(() => { onUnmounted(() => {
if (readObserver) readObserver.unobserve(elRef.value); if (readObserver) readObserver.disconnect();
if (connection) connection.dispose(); if (connection) connection.dispose();
}); });
} }