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

Function render

packages/runtime-core/src/renderer.ts:2419–2444  ·  view source on GitHub ↗
(vnode, container, namespace)

Source from the content-addressed store, hash-verified

2417
2418 let isFlushing = false
2419 const render: RootRenderFunction = (vnode, container, namespace) => {
2420 let instance
2421 if (vnode == null) {
2422 if (container._vnode) {
2423 unmount(container._vnode, null, null, true)
2424 instance = container._vnode.component
2425 }
2426 } else {
2427 patch(
2428 container._vnode || null,
2429 vnode,
2430 container,
2431 null,
2432 null,
2433 null,
2434 namespace,
2435 )
2436 }
2437 container._vnode = vnode
2438 if (!isFlushing) {
2439 isFlushing = true
2440 flushPreFlushCbs(instance)
2441 flushPostFlushCbs()
2442 isFlushing = false
2443 }
2444 }
2445
2446 const internals: RendererInternals = {
2447 p: patch,

Callers 11

patchProps.spec.tsFile · 0.90
mountFunction · 0.70
unmountFunction · 0.70
renderComponentRootFunction · 0.70
installCompatMountFunction · 0.50
withMemoFunction · 0.50

Calls 4

flushPreFlushCbsFunction · 0.90
flushPostFlushCbsFunction · 0.90
patchFunction · 0.85
unmountFunction · 0.70

Tested by

no test coverage detected