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

Function createStaticVNode

packages/runtime-core/src/vnode.ts:763–772  ·  view source on GitHub ↗
(
  content: string,
  numberOfNodes: number,
)

Source from the content-addressed store, hash-verified

761 * @private
762 */
763export function createStaticVNode(
764 content: string,
765 numberOfNodes: number,
766): VNode {
767 // A static vnode can contain multiple stringified elements, and the number
768 // of elements is necessary for hydration.
769 const vnode = createVNode(Static, null, content)
770 vnode.staticCount = numberOfNodes
771 return vnode
772}
773
774/**
775 * @private

Callers 5

testRenderFunction · 0.85
setupFunction · 0.85
hydration.spec.tsFile · 0.85
renderFunction · 0.85

Calls

no outgoing calls

Tested by 3

testRenderFunction · 0.68
setupFunction · 0.68
renderFunction · 0.68