Closed kamilbeben closed 2 years ago
Sorry about that, i've been playing with the fiddle some more and it turns out that this behavior has nothing to do with vue-class-component
because the code below results in the same thing
var TestMixin = {
data () {
return {
testMixinProperty: 'abc'
}
},
watch: {
testMixinProperty (newValue, oldValue) {}
}
}
var App = Vue.extend({
mixins: [TestMixin],
template: `
<div>
{{ testMixinProperty }}
$options.watch.testMixinProperty.length: {{ $options.watch.testMixinProperty.length }}
</div>
`
})
I'm going to close this issue now.
Hi!
According to the documentation, this is how we should use mixins
The problem is,
App
component now have two watchers oftestMixinProperty
. Am i doing something wrong or maybe this is the intended behavior?vue-class-component
version: 7.2.6vue
version: 2.6.11 jsfiddle bug reproduction