Skip to content

can provide a event like vue2 'hook:[lifeCycle]' ? #4457

@yangmi0829

Description

@yangmi0829

What problem does this feature solve?

vue2, we can code like:

   this,$once(''hook:beforeDestory',  dosomething)  

but vue3, i can not find events like this,

What does the proposed API look like?

<children @hook:beforeDestory="dosomething">

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