mergeSlotInstructions() — astro Function Reference
Architecture documentation for the mergeSlotInstructions() function in slot.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 927068e0_2c28_7bc0_366c_08b94dfdfc57["mergeSlotInstructions()"] c9adf848_436e_587f_c997_d91471df3357["slot.ts"] 927068e0_2c28_7bc0_366c_08b94dfdfc57 -->|defined in| c9adf848_436e_587f_c997_d91471df3357 c7a8186f_aeaf_a5d7_bd00_b110613a15c0["renderSlotToString()"] c7a8186f_aeaf_a5d7_bd00_b110613a15c0 -->|calls| 927068e0_2c28_7bc0_366c_08b94dfdfc57 style 927068e0_2c28_7bc0_366c_08b94dfdfc57 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/runtime/server/render/slot.ts lines 34–43
export function mergeSlotInstructions(
target: RenderInstruction[] | null,
source: SlotString,
): RenderInstruction[] | null {
if (source.instructions?.length) {
target ??= [];
target.push(...source.instructions);
}
return target;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does mergeSlotInstructions() do?
mergeSlotInstructions() is a function in the astro codebase, defined in packages/astro/src/runtime/server/render/slot.ts.
Where is mergeSlotInstructions() defined?
mergeSlotInstructions() is defined in packages/astro/src/runtime/server/render/slot.ts at line 34.
What calls mergeSlotInstructions()?
mergeSlotInstructions() is called by 1 function(s): renderSlotToString.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free