Global mixin with watchers will add watchers to each component.
As a result any changes to this.$store.myvalue will trigger multiple (equal to the count of components) store.item.
I suggest to use this.$watch(name, function) on created with a global trigger if watchers has been added (usually to first component?)
Global mixin with watchers will add watchers to each component. As a result any changes to
this.$store.myvalue
will trigger multiple (equal to the count of components) store.item.I suggest to use
this.$watch(name, function)
oncreated
with a global trigger if watchers has been added (usually to first component?)