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

Function mountStaticNode

packages/runtime-core/src/renderer.ts:531–547  ·  view source on GitHub ↗
(
    n2: VNode,
    container: RendererElement,
    anchor: RendererNode | null,
    namespace: ElementNamespace,
  )

Source from the content-addressed store, hash-verified

529 }
530
531 const mountStaticNode = (
532 n2: VNode,
533 container: RendererElement,
534 anchor: RendererNode | null,
535 namespace: ElementNamespace,
536 ) => {
537 // static nodes are only present when used with compiler-dom/runtime-dom
538 // which guarantees presence of hostInsertStaticContent.
539 ;[n2.el, n2.anchor] = hostInsertStaticContent!(
540 n2.children as string,
541 container,
542 anchor,
543 namespace,
544 n2.el,
545 n2.anchor,
546 )
547 }
548
549 /**
550 * Dev / HMR only

Callers 1

patchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected