Memory leak by reactive data #13265
Unanswered
blackkk68
asked this question in
Help/Questions
Replies: 0 comments
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