Closed
Description
Vue version
3.3.4 (all 3.* versions I tested this with were affected)
Link to minimal reproduction
Steps to reproduce
Click on "access" and then on "clear". Even if you then manually trigger garbage collection in the browser, "someObject" doesn't get removed from memory. You have to click "access" again for this to happen.
What is expected?
That after "clear" is called "someObject" gets garbage collected because there shouldn't be anything referencing it.
What is actually happening?
"someObject" stays in memory until the computed property is accessed again.
System Info
No response
Any additional comments?
This was the cause of a huge memory leak in my application that took me very long to discover.
Metadata
Metadata
Assignees
Labels
No labels