core-vapor
core-vapor copied to clipboard
`v-memo`
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
watchfunction - [ ] Compiler part