Home / Function/ loadDirective() — astro Function Reference

loadDirective() — astro Function Reference

Architecture documentation for the loadDirective() function in load.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  a608fbad_b240_287f_d26c_e45f69d27f34["loadDirective()"]
  f8482181_98fe_d1d6_42d1_98783eea0c8f["load.ts"]
  a608fbad_b240_287f_d26c_e45f69d27f34 -->|defined in| f8482181_98fe_d1d6_42d1_98783eea0c8f
  style a608fbad_b240_287f_d26c_e45f69d27f34 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/runtime/client/load.ts lines 3–6

const loadDirective: ClientDirective = async (load) => {
	const hydrate = await load();
	await hydrate();
};

Domain

Subdomains

Frequently Asked Questions

What does loadDirective() do?
loadDirective() is a function in the astro codebase, defined in packages/astro/src/runtime/client/load.ts.
Where is loadDirective() defined?
loadDirective() is defined in packages/astro/src/runtime/client/load.ts at line 3.

Analyze Your Own Codebase

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

Try Supermodel Free