Views: 2695
Last Modified: 27.04.2022
Vue 3 have re-designed directive life cycle hooks: now they have become more similar to the component life cycle hooks. All these events are described in the documentation section: User directives.
List of changes:
- Wasn't used => created
- bind => beforeMount
- inserted => mounted
- Wasn't used => beforeUpdate
- update => removed
- componentUpdated => updated
- Wasn't used => beforeUnmount
- unbind => unmounted
You can find more details on reasons for renaming in the migration guide.