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