We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d48718 commit 3867942Copy full SHA for 3867942
packages/runtime-vapor/src/apiCreateFor.ts
@@ -266,15 +266,18 @@ export const createFor = (
266
block.nodes = scope.run(() => {
267
if (getMemo) {
268
return withMemo(
269
- () => block.memo!,
+ () =>
270
+ getMemo(
271
+ block.state[0].value,
272
+ block.state[1].value,
273
+ block.state[2].value,
274
+ ),
275
() => renderItem(state),
276
)
277
}
278
return renderItem(state)
279
})!
280
- // TODO v-memo
- // if (getMemo) block.update()
281
if (parent) insert(block.nodes, parent, anchor)
282
283
return block
0 commit comments