0๐
I think you need to add the deep
option to your watch:
watch(state.value.myComp[0], (old, newValue) => {
console.log(newValue);
}, { deep: true });
More information here
- [Vuejs]-Render dynamic text-box from input and drop-down list in html, js
- [Vuejs]-Vite: Is there a possibility to exclude code elements from being built?
Source:stackexchange.com