Computed in child component gets executed even when v-if is false in parent component, but only when computed prop is watched
Version
3.0.5
Reproduction link
https://codesandbox.io/s/wild-flower-2nucq
Steps to reproduce
- Click button
toggle
What is expected?
- the text
I should disappear
should disappear
What is actually happening?
- exception is thrown inside of computed
myComputed
This only happens when the watcher on myComputed
on components/Foo.vue:L17 exists.
Duplicate of https://github.com/vuejs/vue-next/issues/2291