How can I prevent repetitive behavior in my code? Is this a bug that needs fixing? Take a look at the plugin below:
const globala = {
install(Vue) {
Vue.mixin({
mounted() {
console.log('hi')
}
})
}
}
And here's an example with just a mixin:
Vue.mixin({
mounted() {
console.log('hi')
}
})