As it is in #27 the created lifecycle hook isn't called. That's because that has to be present directly on the options object, and I don't explicitly add support for that. My thought is to go a route similar to vue-class-component where it just calls a method called created().
This isn't as much of an issue in Vue 3, since the object is reactive from the very beginning. In Vue 2 you can't do any vue/reactive operations (e.g. this.$watch) inside the constructor, which is why having a created lifecycle hook is useful.
As it is in #27 the
created
lifecycle hook isn't called. That's because that has to be present directly on the options object, and I don't explicitly add support for that. My thought is to go a route similar to vue-class-component where it just calls a method calledcreated()
.This isn't as much of an issue in Vue 3, since the object is reactive from the very beginning. In Vue 2 you can't do any vue/reactive operations (e.g.
this.$watch
) inside the constructor, which is why having acreated
lifecycle hook is useful.