Why there is no documentation about the @hook/@vue event? #9298
Unanswered
schirrel
asked this question in
Help/Questions
Replies: 1 comment
-
I thought I was going mad when I saw this syntax being used and could find no reference in the docs, seems a strange omission! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just discovered a few minutes that theres a
@hook
(@vue
on vue 3) event that can be used on vue components, and i had to confess that it is extremelly usefull with dynamic components. Such@hook:mounted
or@hook:destroyed
.I am curious on why there's no mention of this in the docs, both vue 2 and 3. The only way that shows a bit of it is in the migration guide VNode Lifecycle Events section, but other than that no such a thing is presente
Is this a kindof "easter egg" or a functionality that is no intendeed to be used?
I'de search inside the repo and the documentation and haven't found about this. Maybe it shown on any other way?
Beta Was this translation helpful? Give feedback.
All reactions