Subscribe on changes!

Memory leak during routing switch

avatar
Jun 25th 2021

Version

3.1.2

Reproduction link

https://github.com/wukang0718/vue3-memory

Steps to reproduce

1, project execution npm run serve 2. Click the button to switch the route continuously 3. Found that JS Heap and DOM Nodes are not reduced

What is expected?

JS Heap and DOM Nodes reduced

What is actually happening?

JS Heap and DOM Nodes are not reduced

avatar
Jun 25th 2021

image

avatar
Jun 25th 2021

This demo can't replicate my problem

avatar
Jul 12th 2021

No idea if related in any way but I have a memory leak problem were each route sticks in memory on first visit.

Reproduction: https://github.com/MarMun/vue-memleak

Maybe it helps.