element
element copied to clipboard
Clear timing events and event listeners when component unmounts
Hi 👋 Thank you for this project!
We noticed some event listeners and timings events were not removed when the component unmounts. This can lead to accumulated timers and listeners leading to memory leaks. This PR fixes the issue :) We also noticed the heap usage before and after the fix using Memlab
Before
After