Skip to content
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

Clear event listeners before component unmounts #7193

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

Arooba-git
Copy link

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

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.

Latest deployment of this branch, based on commit 60876d1:

Sandbox Source
BootstrapVue Starter Project Configuration
BootstrapVue Nuxt.js Starter Project Configuration

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.

None yet

2 participants