-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Add documentation for "VNode Lifecycle Events" #2851
Comments
Similar issues; It looks like this has been requested and voiced by other people. Just tagging to get this issue moving: @yyx990803 |
As mentioned in the PR, we didn't document this feature in both Vue 2 and Vue 3 because it's not a recommended practice to listen to |
Hi @NataliaTepluhina, please tell us why this is not a recommended practice. This approach is beneficial in many situations. Are you guys planning to remove it in breaking changes? |
I guess the reason is that it tightly couples child to parent and therefore reducing re-usability. It is also obsfucating logical flow of the code - because why wouldn't you handle component's lifecycle hook inside the component itself? |
If someone uses it internally, that answers the question of why. |
Hi,
"VNode Lifecycle Events" are documented in migration docs but there is no information about them in main docs.
Can you add some information about them?
The text was updated successfully, but these errors were encountered: