Home / Function/ createAstroComponentInstance() — astro Function Reference

createAstroComponentInstance() — astro Function Reference

Architecture documentation for the createAstroComponentInstance() function in instance.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  25a504fc_665b_a586_21a2_2584388b54c8["createAstroComponentInstance()"]
  1be70ad0_d3b6_9a94_47c0_3985acb68eaf["instance.ts"]
  25a504fc_665b_a586_21a2_2584388b54c8 -->|defined in| 1be70ad0_d3b6_9a94_47c0_3985acb68eaf
  041b340b_266d_1f41_f405_8ebb1b196564["validateComponentProps()"]
  25a504fc_665b_a586_21a2_2584388b54c8 -->|calls| 041b340b_266d_1f41_f405_8ebb1b196564
  style 25a504fc_665b_a586_21a2_2584388b54c8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/runtime/server/render/astro/instance.ts lines 105–118

export function createAstroComponentInstance(
	result: SSRResult,
	displayName: string,
	factory: AstroComponentFactory,
	props: ComponentProps,
	slots: any = {},
) {
	validateComponentProps(props, result.clientDirectives, displayName);
	const instance = new AstroComponentInstance(result, props, slots, factory);
	if (isAPropagatingComponent(result, factory)) {
		result._metadata.propagators.add(instance);
	}
	return instance;
}

Domain

Subdomains

Frequently Asked Questions

What does createAstroComponentInstance() do?
createAstroComponentInstance() is a function in the astro codebase, defined in packages/astro/src/runtime/server/render/astro/instance.ts.
Where is createAstroComponentInstance() defined?
createAstroComponentInstance() is defined in packages/astro/src/runtime/server/render/astro/instance.ts at line 105.
What does createAstroComponentInstance() call?
createAstroComponentInstance() calls 1 function(s): validateComponentProps.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free