renderFragmentComponent() — astro Function Reference
Architecture documentation for the renderFragmentComponent() function in component.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD b8c882f5_a42f_b065_eb12_bfb3dc3ff9ed["renderFragmentComponent()"] 8fc97f1b_c914_c155_013d_cbd729fb6b4f["component.ts"] b8c882f5_a42f_b065_eb12_bfb3dc3ff9ed -->|defined in| 8fc97f1b_c914_c155_013d_cbd729fb6b4f 94f21ea8_f0e7_2f4c_ee40_699f26c9ede0["renderComponent()"] 94f21ea8_f0e7_2f4c_ee40_699f26c9ede0 -->|calls| b8c882f5_a42f_b065_eb12_bfb3dc3ff9ed style b8c882f5_a42f_b065_eb12_bfb3dc3ff9ed fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/runtime/server/render/component.ts lines 407–418
async function renderFragmentComponent(
result: SSRResult,
slots: ComponentSlots = {},
): Promise<RenderInstance> {
const children = await renderSlotToString(result, slots?.default);
return {
render(destination) {
if (children == null) return;
destination.write(children);
},
};
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does renderFragmentComponent() do?
renderFragmentComponent() is a function in the astro codebase, defined in packages/astro/src/runtime/server/render/component.ts.
Where is renderFragmentComponent() defined?
renderFragmentComponent() is defined in packages/astro/src/runtime/server/render/component.ts at line 407.
What calls renderFragmentComponent()?
renderFragmentComponent() is called by 1 function(s): renderComponent.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free