Skip to content

$destroy does remove allocated objects? #4582

@lucasm-iRonin

Description

@lucasm-iRonin

Hi,
It seems to me that $destroy does not remove allocated objects (please correct me if I'm checking it incorrectly). I'm using Take Heap Snapshot in Google Chrome to take snapshot after the app is initialized (using new Vue) and then destroyed (using app.$destroy()). It seems that all the Vue components are still in the memory (when I compare snapshots Vue instances are not removed).

I know it has been mentioned that destroying objects manually is not the best practice but I'm working on Chrome Extension and I would like to be able to tear down the whole app.

Here is simple JSFiddle I'm using for testing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions