Skip to content

v-memo #18

Closed
Closed
@sxzz

Description

@sxzz

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions