Home / Function/ createComponentWithOptions() — astro Function Reference

createComponentWithOptions() — astro Function Reference

Architecture documentation for the createComponentWithOptions() function in astro-component.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  1a85e680_9a75_a4a9_46ee_2d80fa739b71["createComponentWithOptions()"]
  210ae47f_0b36_a098_f009_b4233604e5ef["astro-component.ts"]
  1a85e680_9a75_a4a9_46ee_2d80fa739b71 -->|defined in| 210ae47f_0b36_a098_f009_b4233604e5ef
  517c2959_8e1b_8d84_bb92_d35cd47e42be["createComponent()"]
  517c2959_8e1b_8d84_bb92_d35cd47e42be -->|calls| 1a85e680_9a75_a4a9_46ee_2d80fa739b71
  f68031e7_7604_0f11_a1b1_5548d3137d57["baseCreateComponent()"]
  1a85e680_9a75_a4a9_46ee_2d80fa739b71 -->|calls| f68031e7_7604_0f11_a1b1_5548d3137d57
  style 1a85e680_9a75_a4a9_46ee_2d80fa739b71 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/runtime/server/astro-component.ts lines 39–42

function createComponentWithOptions(opts: CreateComponentOptions) {
	const cb = baseCreateComponent(opts.factory, opts.moduleId, opts.propagation);
	return cb;
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does createComponentWithOptions() do?
createComponentWithOptions() is a function in the astro codebase, defined in packages/astro/src/runtime/server/astro-component.ts.
Where is createComponentWithOptions() defined?
createComponentWithOptions() is defined in packages/astro/src/runtime/server/astro-component.ts at line 39.
What does createComponentWithOptions() call?
createComponentWithOptions() calls 1 function(s): baseCreateComponent.
What calls createComponentWithOptions()?
createComponentWithOptions() is called by 1 function(s): createComponent.

Analyze Your Own Codebase

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

Try Supermodel Free