0๐
โ
i think i found the answer. the watch
option should have been looked like as follows. state.value
must have been watched not state
watch:{
'state.value'(newVal, oldVal) {
console.log(oldVal);
console.log(newVal);
},
}
Source:stackexchange.com