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

1. 加载渲染过程 #242

Closed
zzNire opened this issue Aug 12, 2019 · 1 comment
Closed

1. 加载渲染过程 #242

zzNire opened this issue Aug 12, 2019 · 1 comment

Comments

@zzNire
Copy link

zzNire commented Aug 12, 2019

  1. 加载渲染过程
    父beforeCreate->父created->父beforeMount->子beforeCreate->子created->子beforeMount->子mounted->父mounted
  2. 子组件更新过程
    父beforeUpdate->子beforeUpdate->子updated->父updated
  3. 父组件更新过程
    父beforeUpdate->父updated
  4. 销毁过程
    父beforeDestroy->子beforeDestroy->子destroyed->父destroyed

Originally posted by @luchx in #128 (comment)

@zzNire
Copy link
Author

zzNire commented Aug 12, 2019

为什么子组件更新会触发父组件的 beforeUpdate,确定没写错吗

@yygmind yygmind closed this as completed Aug 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants