diff --git a/packages/client/src/components/notification.vue b/packages/client/src/components/notification.vue index a9327b7f2b..b9fb342a19 100644 --- a/packages/client/src/components/notification.vue +++ b/packages/client/src/components/notification.vue @@ -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(); }); }