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

Function ssrRenderComponent

packages/server-renderer/src/helpers/ssrRenderComponent.ts:10–22  ·  view source on GitHub ↗
(
  comp: Component,
  props: Props | null = null,
  children: Slots | SSRSlots | null = null,
  parentComponent: ComponentInternalInstance | null = null,
  slotScopeId?: string,
)

Source from the content-addressed store, hash-verified

8import type { SSRSlots } from './ssrRenderSlot'
9
10export function ssrRenderComponent(
11 comp: Component,
12 props: Props | null = null,
13 children: Slots | SSRSlots | null = null,
14 parentComponent: ComponentInternalInstance | null = null,
15 slotScopeId?: string,
16): SSRBuffer | Promise<SSRBuffer> {
17 return renderComponentVNode(
18 createVNode(comp, props, children),
19 parentComponent,
20 slotScopeId,
21 )
22}

Callers 3

ssrRenderFunction · 0.90
ssrRenderFunction · 0.90
ssrScopeId.spec.tsFile · 0.90

Calls 1

renderComponentVNodeFunction · 0.90

Tested by 2

ssrRenderFunction · 0.72
ssrRenderFunction · 0.72