Closed
Description
Version
6.1.1
Reproduction link
Memory leak with Vue class component
https://jsfiddle.net/n1tvtwet/3/
Not reproduce-able, with vanilla vue js
https://jsfiddle.net/n1tvtwet/
Steps to reproduce
- open attached jsfiddle
- open chrome dev tools -> memory tab
- select the 'Home' route
- make a heap snapshot
- select the 'Foo' route
- make a heap snapshot
- select the last snapshot and use the 'comparison' tab
- in the search box enter 'detached'
- find the detached tree
- if you hover the red HTMLDivElement you will notice it is the dom element of the 'Home' component
What is expected?
we would expect that when we use vue-class-component it would not leak memory
What is actually happening?
detached nodes are found and memory is leaked when vue-class-component is used, while this is not the case when a vanilla vuejs solution is used.