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