You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ok, fair! I figured it might be intentional. My next question is why it triggers when I just watch the state object, even with deep: false. for example:
const state = reactive({ items: [] })
watch(state, () => console.log('watcher fired'), { deep: false } )
state.items.push('foo') // the watcher DOES fire in this case
Version
3.0.0-beta.14
Reproduction link
https://codesandbox.io/s/vue-3-watcher-error-goox1
Steps to reproduce
I assume that when watching an array, the watcher would fire when items are added.
What is expected?
the
watchEffect
fires when items are added to the arrayWhat is actually happening?
the
watchEffect
does not fireThe text was updated successfully, but these errors were encountered: