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

Function mountChildren

packages/runtime-core/src/renderer.ts:798–825  ·  view source on GitHub ↗
(
    children,
    container,
    anchor,
    parentComponent,
    parentSuspense,
    namespace: ElementNamespace,
    slotScopeIds,
    optimized,
    start = 0,
  )

Source from the content-addressed store, hash-verified

796 }
797
798 const mountChildren: MountChildrenFn = (
799 children,
800 container,
801 anchor,
802 parentComponent,
803 parentSuspense,
804 namespace: ElementNamespace,
805 slotScopeIds,
806 optimized,
807 start = 0,
808 ) => {
809 for (let i = start; i < children.length; i++) {
810 const child = (children[i] = optimized
811 ? cloneIfMounted(children[i] as VNode)
812 : normalizeVNode(children[i]))
813 patch(
814 null,
815 child,
816 container,
817 anchor,
818 parentComponent,
819 parentSuspense,
820 namespace,
821 slotScopeIds,
822 optimized,
823 )
824 }
825 }
826
827 const patchElement = (
828 n1: VNode,

Callers 5

mountElementFunction · 0.85
processFragmentFunction · 0.85
patchChildrenFunction · 0.85
patchUnkeyedChildrenFunction · 0.85
mountFunction · 0.85

Calls 3

cloneIfMountedFunction · 0.90
normalizeVNodeFunction · 0.90
patchFunction · 0.85

Tested by

no test coverage detected