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

Function moveStaticNode

packages/runtime-core/src/renderer.ts:576–588  ·  view source on GitHub ↗
(
    { el, anchor }: VNode,
    container: RendererElement,
    nextSibling: RendererNode | null,
  )

Source from the content-addressed store, hash-verified

574 }
575
576 const moveStaticNode = (
577 { el, anchor }: VNode,
578 container: RendererElement,
579 nextSibling: RendererNode | null,
580 ) => {
581 let next
582 while (el && el !== anchor) {
583 next = hostNextSibling(el)
584 hostInsert(el, container, nextSibling)
585 el = next
586 }
587 hostInsert(anchor!, container, nextSibling)
588 }
589
590 const removeStaticNode = ({ el, anchor }: VNode) => {
591 let next

Callers 1

moveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected