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

fix(runtime-core): ensure app instance can be garbage collected after unmount. (close #2907) #2908

Closed
wants to merge 2 commits into from

Conversation

LinusBorg
Copy link
Member

@LinusBorg LinusBorg commented Dec 29, 2020

When unmounting an app, we need to remove the __vue_app__ property from the container element, otherwise the app instance can't be garbage collected for as long as that element exists.

closes #2907

@LinusBorg LinusBorg changed the title fix(runtime-core): ensure app instance can be garbage collected after unmount. fix(runtime-core): ensure app instance can be garbage collected after unmount. (close #2907) Dec 29, 2020
@github-actions
Copy link

Size report

Path Size
vue.global.prod.js 40.55 KB (+0.1% 🔺)
runtime-dom.global.prod.js 26.88 KB (+0.17% 🔺)
size-check.global.prod.js 16.24 KB (+0.2% 🔺)

@LinusBorg LinusBorg added 🐞 bug Something isn't working 🍰 p2-nice-to-have Priority 2: this is not breaking anything but nice to have it addressed. and removed 🐞 bug Something isn't working labels Dec 29, 2020
? shallow
? shallowReadonlyMap
: readonlyMap
: shallow
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here mixed other unrelated code.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah damn. Somehow some changes meant for another branch slipped in here.

Wil fix it in a minute

@LinusBorg
Copy link
Member Author

will send a new, clean one.

@LinusBorg LinusBorg closed this Dec 29, 2020
@LinusBorg LinusBorg deleted the linusborg/fix-app-instance-memleak-2907 branch December 29, 2020 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍰 p2-nice-to-have Priority 2: this is not breaking anything but nice to have it addressed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.unmount() memory leak
2 participants