Vue:Lifecycle
lastmod 2021-08-13created 2021-07-159 edits
Diagram
Vue-lifecycle.png
beforeCreate
Caveats when writing components:
-
methodscannot be accessed in #beforeCreate. They are accessible from #created onward. So even if you write in TypeScript, things like private methods are not accessible at this timing.
created
beforeMount
mounted
| WARNING |
| In particular, if v-model-related properties of components like Vuetify don't work properly, updating the v-bind:value value in the mounted event might work. <- Components like switch may malfunction when placed in a child component. <- Needs verification |