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

Function updateComponentPreRender

packages/runtime-core/src/renderer.ts:1623–1640  ·  view source on GitHub ↗
(
    instance: ComponentInternalInstance,
    nextVNode: VNode,
    optimized: boolean,
  )

Source from the content-addressed store, hash-verified

1621 }
1622
1623 const updateComponentPreRender = (
1624 instance: ComponentInternalInstance,
1625 nextVNode: VNode,
1626 optimized: boolean,
1627 ) => {
1628 nextVNode.component = instance
1629 const prevProps = instance.vnode.props
1630 instance.vnode = nextVNode
1631 instance.next = null
1632 updateProps(instance, nextVNode.props, prevProps, optimized)
1633 updateSlots(instance, nextVNode.children, optimized)
1634
1635 pauseTracking()
1636 // props update may have triggered pre-flush watchers.
1637 // flush them before the render update.
1638 flushPreFlushCbs(instance)
1639 resetTracking()
1640 }
1641
1642 const patchChildren: PatchChildrenFn = (
1643 n1,

Callers 2

updateComponentFunction · 0.85
componentUpdateFnFunction · 0.85

Calls 5

updatePropsFunction · 0.90
updateSlotsFunction · 0.90
pauseTrackingFunction · 0.90
flushPreFlushCbsFunction · 0.90
resetTrackingFunction · 0.90

Tested by

no test coverage detected