@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
@vaneenige I'm using the
cobelibrary 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