Do onActivated and onDeactivated replaces onCreated and onDestroyed?
https://vue-composition-api-rfc.netlify.com/api.html#lifecycle-hooks
Mapping between 2.x Lifecycle Options and Composition API
beforeCreate -> use setup()
created -> use setup()
beforeMount -> onBeforeMount
mounted -> onMounted
beforeUpdate -> onBeforeUpdate
updated -> onUpdated
beforeDestroy -> onBeforeUnmount
destroyed -> onUnmounted
errorCaptured -> onErrorCaptured
Most helpful comment
https://vue-composition-api-rfc.netlify.com/api.html#lifecycle-hooks
Mapping between 2.x Lifecycle Options and Composition API
beforeCreate -> use setup()
created -> use setup()
beforeMount -> onBeforeMount
mounted -> onMounted
beforeUpdate -> onBeforeUpdate
updated -> onUpdated
beforeDestroy -> onBeforeUnmount
destroyed -> onUnmounted
errorCaptured -> onErrorCaptured