vuejs / composition-api-rfc

Vuepress render for the Composition API RFC
https://vue-composition-api-rfc.netlify.com
104 stars 37 forks source link

Fix setup #13

Closed theniceangel closed 4 years ago

theniceangel commented 4 years ago

in runtime-core package, setup is called in setupStatefulComponent, then in finishComponentSetup function, `applyOptions' will be excuted for the sake of compatibility about 2.x options, where 'beforeCreate' lifecycle will be excuted.

So, setup is called before beforeCreate hook

vue-bot commented 4 years ago

Hey @theniceangel, thank you for your time and effort spent on this PR, contributions like yours help make Vue better for everyone. Cheers! 💚