MCPcopy
hub / github.com/vuejs/core / cloneIfMounted

Function cloneIfMounted

packages/runtime-core/src/vnode.ts:811–816  ·  view source on GitHub ↗
(child: VNode)

Source from the content-addressed store, hash-verified

809
810// optimized normalization for template-compiled render fns
811export function cloneIfMounted(child: VNode): VNode {
812 return (child.el === null && child.patchFlag !== PatchFlags.CACHED) ||
813 child.memo
814 ? child
815 : cloneVNode(child)
816}
817
818export function normalizeChildren(vnode: VNode, children: unknown): void {
819 let type = 0

Callers 5

mountChildrenFunction · 0.90
patchUnkeyedChildrenFunction · 0.90
patchKeyedChildrenFunction · 0.90
traverseStaticChildrenFunction · 0.90
normalizeVNodeFunction · 0.85

Calls 1

cloneVNodeFunction · 0.85

Tested by

no test coverage detected