Disconnect observers instead of unobserve
This commit is contained in:
@@ -71,6 +71,7 @@
|
||||
// Destroy
|
||||
return () => {
|
||||
destroy()
|
||||
observer && observer.disconnect()
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
|
||||
// Destroy
|
||||
return () => {
|
||||
navObserver && navObserver.unobserve(introEl)
|
||||
navObserver && navObserver.disconnect()
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user