From d4e0669724bddb3787b3f8dba83e63fa3d2756e7 Mon Sep 17 00:00:00 2001 From: tamaina Date: Mon, 22 Nov 2021 16:14:22 +0900 Subject: [PATCH] disconnect intersection observer --- packages/client/src/components/notification.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/components/notification.vue b/packages/client/src/components/notification.vue index 1f70d441ef..dbd6b61c2b 100644 --- a/packages/client/src/components/notification.vue +++ b/packages/client/src/components/notification.vue @@ -126,7 +126,7 @@ export default defineComponent({ }); onUnmounted(() => { - if (readObserver) readObserver.unobserve(elRef.value); + if (readObserver) readObserver.disconnect(); if (connection) connection.dispose(); }); }