state: {
value: 0,
rgbColors: {
red: 0
}
},
watch
getters
в computed
const app = new Vue({
store,
el: '#app',
data() {
return {}
},
computed: {
rgbColors() {
return this.$store.getters.rgbColors
}
},
watch: {
rgbColors(newValue, oldValue) {
}
}
});