Closed
Description
v-memo
in vapor mode is completely different, compared to vue-core. Since in vapor mode, we use effect
(aka watchEffect
) to track & update DOM nodes.
So to implement it, I think watch
function is enough.
<div v-memo="[msg]">{{ msg }}{{ count }}</div>
Compiles to
watch([msg], () => {
setText(...)
})
- Runtime
watch
function - Compiler part