Skip to content

fix(docs): clear event listeners before component unmounts #7193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 31, 2025

Conversation

Arooba-git
Copy link
Contributor

Hi 👋
Thank you for this project!

We found some components using event listeners that were not removed when the component unmounts. This can lead to an accumulation of hanging listeners on top of previous ones, leading to memory leaks. This PR fixes the issue.
We also measured heap size and leak count before and after the fix using Memlab:

Before
bootstrap-vue-heap-before
bootstrap-vue-leak-before

After
boostrap-vue-heap-after
bootstrap-vue-leak-after

Copy link

vercel bot commented Jan 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
bootstrap-vue ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 15, 2024 4:33am

Copy link

codesandbox-ci bot commented Jan 15, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@jacobmllr95 jacobmllr95 changed the title Clear event listeners before component unmounts fix(docs): clear event listeners before component unmounts Mar 26, 2025
Copy link

codecov bot commented Mar 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.96%. Comparing base (46360a7) to head (a804adb).
Report is 3 commits behind head on dev.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #7193   +/-   ##
=======================================
  Coverage   99.96%   99.96%           
=======================================
  Files         305      305           
  Lines       11206    11206           
  Branches     2647     2647           
=======================================
  Hits        11202    11202           
  Misses          4        4           
Flag Coverage Δ
unittests 99.96% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jacobmllr95 jacobmllr95 merged commit 9155d00 into bootstrap-vue:dev Mar 31, 2025
12 checks passed
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.

3 participants