[Vuejs]-Watch option is not triggered

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);
   },
}

Leave a comment