Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
yangmi0829 opened this issue Aug 27, 2021 · 2 comments
Closed

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

yangmi0829 opened this issue Aug 27, 2021 · 2 comments

Comments

@yangmi0829
Copy link

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">

@yangmi0829
Copy link
Author

use "@vnodeBeforeUnmount" instead

@JackieCheung
Copy link

use "@vnodeBeforeUnmount" instead

Is there any reference document for this api?

@github-actions github-actions bot locked and limited conversation to collaborators Sep 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants