Disconnect IOs on destroy
This commit is contained in:
@@ -105,7 +105,7 @@
|
|||||||
return () => {
|
return () => {
|
||||||
if (globe) {
|
if (globe) {
|
||||||
globe.destroy()
|
globe.destroy()
|
||||||
observer.unobserve(globeEl)
|
observer.disconnect()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -67,9 +67,10 @@
|
|||||||
})
|
})
|
||||||
observer.observe(listEl)
|
observer.observe(listEl)
|
||||||
|
|
||||||
|
|
||||||
// Destroy
|
// Destroy
|
||||||
return () => {
|
return () => {
|
||||||
|
observer.disconnect()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user