v-memo doesn't work on v-if and component
Vue version
latest
Link to minimal reproduction
Steps to reproduce
<span v-if="show" v-memo="[count]">{{count}}</span> const show = ref(true); const count = ref(0);
1.change show from true to false and to true again 2.change count; 3. will not update
<el-button v-memo="[show]">{{count}}</el-button> const show = ref(true); const count = ref(0);
1.keep show === true
2.change count;
3.
What is expected?
v-memo work on v-if and component
What is actually happening?
v-memo doesn't work on v-if and component
System Info
No response
Any additional comments?
No response
Your reproduction is not minimal, please read and follow https://new-issue.vuejs.org/?repo=vuejs/vue-next#why-repro when reporting a bug. Most bugs should be reproducible with the SFC Playground.