-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
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
Why isn't Nodes and Listener removed when switching route? #5839
Comments
I think I have the similar problem as you. |
@Simonalia That's probably unrelated to OP's problem. You likely forgot to use If you have further questions, please ask them on forum.vuejs.org. This issue here should focus on OP's problem. |
Yeah, I got it. Thank you. @LinusBorg |
Thanks, looks like there's indeed some memory leak going on, I've identified the source and working on a fix. |
@yyx990803 Thank you very much for your help! |
This is out in 2.3.4 |
I have same issue with 2.5.16 version. Here example: https://jsfiddle.net/vjkosmos/hbbb28ky/ If you will fast clicking on button you can see in chrome de tools Performance monitor are not Nodes and Listener removed. |
Commenting on a -year old, closed issue will hardly be noticed. Please file a real bug report. |
Already did it. |
Version
2.3.3
Reproduction link
https://forum.vuejs.org/t/why-isnt-nodes-and-listener-removed-when-switching-route/11637
Steps to reproduce
Destroy Vue components or Dom by a method as using vue-router or simple v-if.
What is expected?
JS Heap memories don't increase by destroying Vue components.
What is actually happening?
JS Heap memories increase when creating new Vue components.
I contributed same topic to vue's official forum but I couldn't obtain a valid answer.
So please let me question again.
VNodes and Listeners remain when Dom destroyed and JS Heap memories increase.
For more information. Please access link I posted.
Sorry for double contribution.
Please reply if you know anything.
The text was updated successfully, but these errors were encountered: