Skip to content

Memory leak by reactive data #13265

Closed Answered by panstromek
blackkk68 asked this question in Help/Questions
Discussion options

You must be logged in to vote

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 console.log() the response, browser has to keep the array in memory to make sure it can be displayed in the console.

You can test this out, try to remove the console.log and see if the behaviour is the same. If you still reproduce the problem, then I'd look through the heap snapshot and see if the array is being held by some internal Vue data structure and if so, why.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@blackkk68
Comment options

Answer selected by blackkk68
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants