element icon indicating copy to clipboard operation
element copied to clipboard

Clear timing events and event listeners when component unmounts

Open Arooba-git opened this issue 1 year ago • 0 comments

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 element-heap-before

After element-heap-after

Arooba-git avatar Jan 10 '24 06:01 Arooba-git