Subscribe on changes!

Memory leak occurs when v-for's data source changed

avatar
Oct 21st 2021

Version

3.2.20

Reproduction link

sfc.vuejs.org/

Steps to reproduce

Click the change time button, The memory curve in the performance monitor has been rising, and manual GC cannot be recycled.

What is expected?

No leakage occurs when you click the change time button

What is actually happening?

Changing the data source leads to memory leaks


When v-for's internal components are html native components, it does not seem to cause this problem (当v-for的内部组件是html原生组件的时候似乎不会导致这个问题)