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

Function resolveDynamicComponent

packages/runtime-core/src/helpers/resolveAssets.ts:34–41  ·  view source on GitHub ↗
(component: unknown)

Source from the content-addressed store, hash-verified

32 * @private
33 */
34export function resolveDynamicComponent(component: unknown): VNodeTypes {
35 if (isString(component)) {
36 return resolveAsset(COMPONENTS, component, false) || component
37 } else {
38 // invalid types will fallthrough to createVNode and raise warning
39 return (component || NULL_DYNAMIC_COMPONENT) as any
40 }
41}
42
43/**
44 * @private

Callers 4

compatHFunction · 0.90
ssrRenderFunction · 0.85
Suspense.spec.tsFile · 0.85
setupFunction · 0.85

Calls 2

isStringFunction · 0.90
resolveAssetFunction · 0.85

Tested by 2

ssrRenderFunction · 0.68
setupFunction · 0.68