Subscribe on changes!

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

avatar
Aug 27th 2021

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

avatar
Aug 27th 2021

use "@vnodeBeforeUnmount" instead

avatar
Mar 30th 2022

use "@vnodeBeforeUnmount" instead

Is there any reference document for this api?