Is there any way to watch a Map in addition to using entries()?
Version
3.0.6
Reproduction link
https://codesandbox.io/s/serene-lewin-11xuh?file=/src/App.vue
Steps to reproduce
- click button
What is expected?
11
be priented in console.
What is actually happening?
Nothing happended.
looks like a solid way. Please use chat.vuejs.org for further usage questions.
Thank you, but when watch the Map directly, cb will not be called, is it a right behavior?
@LinusBorg
works fine use deep
watch(() => test.test, () => {
console.log(111)
},{deep:true})
or
watch(test.test, () => {
console.log(111)
})