You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@vaneenige I'm using the cobe library to render a globe on the screen. That library is built on top of phenomenon. What I've noticed is that the resize event listener is never removed when the destroy method is called.
When I scroll my globe out of view I remove it from the DOM as it's wasted resources when it's offscreen.
Looking at the dev tools though, I see multiple addEventListeners for resize as the component mounts / unmounts
@vaneenige I'm using the
cobe
library to render a globe on the screen. That library is built on top of phenomenon. What I've noticed is that the resize event listener is never removed when the destroy method is called.When I scroll my globe out of view I remove it from the DOM as it's wasted resources when it's offscreen.
Looking at the dev tools though, I see multiple addEventListeners for resize as the component mounts / unmounts
Here is a PR #16 with the proposed change
The text was updated successfully, but these errors were encountered: