Skip to content

why $destroy was removed? #3676

Closed
Closed
@codon19

Description

What problem does this feature solve?

Hello, why $destroy was removed? I'm sorry that I didn't find a detailed explanation, only a simple explanation. 'Users should no longer manually manage the lifecycle of individual Vue components'.

When using Keep-Alive to cache multiple instances of the same component, a component instance needs to be destroyed manually.

What does the proposed API look like?

this.$destroy()

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