disconnect intersection observer
This commit is contained in:
parent
d3946ab5e0
commit
3739cb7306
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue