Skip to content

Clear timing events and event listeners when component unmounts#22795

Open
Arooba-git wants to merge 1 commit into
ElemeFE:devfrom
Arooba-git:fix-memory-leak
Open

Clear timing events and event listeners when component unmounts#22795
Arooba-git wants to merge 1 commit into
ElemeFE:devfrom
Arooba-git:fix-memory-leak

Conversation

@Arooba-git
Copy link
Copy Markdown

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant