Memory leak by reactive data #13265
Unanswered
blackkk68
asked this question in
Help/Questions
Replies: 1 comment
-
You should be able to figure out who holds the reference to this array, if you click through the heap snapshot. I suspect that it's a console (rather surprisingly I guess). Because you You can test this out, try to remove the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Repository with reproduction
https://github.com/blackkk68/vue_memory_leak
Problem
Reactive data doesn't remove by garbage collector after component unmount
Snapshot without any actions
Snapshot after component with reactive data mounted (big array in memory)
Snapshot after component with reactive data unmounted and garbage collector launched (array is still in memory)
Snapshot after press button many times (much memory use)
There's no memory leak if using regular array without ref. Is this normal behaviour?
Beta Was this translation helpful? Give feedback.
All reactions