You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- [ ] remove the constraint that component must inherit from Vue
ship the new @watch decorator: BREAKING CHANGE here
The first point: it is very verbose to extends Vue and import a new Symbol. For small components (which are quite common in component oriented arch) it is just overkill.
I do include this constraint for preventing user from inheriting classes other than component. But this can be warned in documentation. Why would most users be bothered by naughty users?
Impossible to achieve point1 because components option expects hashes of which the values are ComponentOption/FunctionalOption/typeof Vue.
- [ ] remove the constraint that component must inherit from VueThe first point: it is very verbose toextends Vue
and import a new Symbol. For small components (which are quite common in component oriented arch) it is just overkill.I do include this constraint for preventing user from inheriting classes other than component. But this can be warned in documentation. Why would most users be bothered by naughty users?Impossible to achieve point1 because
components
option expects hashes of which the values areComponentOption/FunctionalOption/typeof Vue
.Also, _init is required to be called in base constructor to inject in propData. vuejs/vue-class-component#41
The text was updated successfully, but these errors were encountered: