[BUG Report] Memory lack might cause by Transition?
Version
3.0.5
Reproduction link
https://codesandbox.io/s/solitary-sound-5kr9s?file=/src/App.vue
Steps to reproduce
Normal:
- open chrome DevTools
- take heap snapshot
- click render button
- click remove button
- take heap snapshot
- compare two snapshot and set filter to div
- nothing different
With transition:
- click switchRender button(switch to render div with transition)
- take heap snapshot
- click render button
- click remove button after dom enter
- take heap snapshot after dom leave
- compare two snapshot and set filter to div
- four div allocated has been destory but has a detached HTMLDivElement still in memory
What is expected?
Is there a bug?
What is actually happening?
Maybe memory lack?
You should test in incognito mode in order to eliminate the interference of browser extensions. In addition, you should also click the collect garbage button every time you take a snapshot. And finally, I did some tests and found no memory leaks
You should test in incognito mode in order to eliminate the interference of browser extensions. In addition, you should also click the collect garbage button every time you take a snapshot. And finally, I did some tests and found no memory leaks
Sorry, thanks for your explanation, this is my mistake.