Skip to content

Commit

Permalink
wip: .
Browse files Browse the repository at this point in the history
  • Loading branch information
linzhe141 committed Jan 14, 2025
1 parent 11f7674 commit 75d0d0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/runtime-core/src/vnode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,8 @@ export function normalizeVNode(child: VNodeChild): VNode {
// optimized normalization for template-compiled render fns
export function cloneIfMounted(child: VNode): VNode {
return (child.el === null && child.patchFlag !== PatchFlags.CACHED) ||
child.memo
child.memo ||
(child.el !== null && child.patchFlag !== PatchFlags.CACHED && !child.memo)
? child
: cloneVNode(child)
}
Expand Down

0 comments on commit 75d0d0d

Please sign in to comment.