Skip to content

Memory leak and uncleared ref for static components. #985

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

Closed
TerenceZ opened this issue Jun 29, 2015 · 1 comment
Closed

Memory leak and uncleared ref for static components. #985

TerenceZ opened this issue Jun 29, 2015 · 1 comment

Comments

@TerenceZ
Copy link

In brief, when unbuild() the static component (e.g., caused by the v-if), it won't invoke the unsetCurrent() to clean the ref in its context, which leads to the situation that the component's destroyed or being destroyed (because the deferred cleanup) but its context can still manipulate it by its ref, which is unexpected. For example and more detail, check the demo.

@yyx990803
Copy link
Member

Thanks for the detailed report, really appreciated!

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

No branches or pull requests

2 participants