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

Function resolveAsyncComponentPlaceholder

packages/runtime-core/src/renderer.ts:2627–2639  ·  view source on GitHub ↗
(anchorVnode: VNode)

Source from the content-addressed store, hash-verified

2625}
2626
2627function resolveAsyncComponentPlaceholder(anchorVnode: VNode) {
2628 if (anchorVnode.placeholder) {
2629 return anchorVnode.placeholder
2630 }
2631
2632 // anchor vnode maybe is a wrapper component has single unresolved async component
2633 const instance = anchorVnode.component
2634 if (instance) {
2635 return resolveAsyncComponentPlaceholder(instance.subTree)
2636 }
2637
2638 return null
2639}

Callers 1

patchKeyedChildrenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected