Home / Function/ load() — astro Function Reference

load() — astro Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  05c99671_b865_b426_cd4b_48a29689bac6["load()"]
  91969197_292d_3b15_21c6_0e876968e961["AstroSession"]
  05c99671_b865_b426_cd4b_48a29689bac6 -->|defined in| 91969197_292d_3b15_21c6_0e876968e961
  style 05c99671_b865_b426_cd4b_48a29689bac6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/core/session/runtime.ts lines 314–319

	async load(sessionID: string) {
		this.#sessionID = sessionID;
		this.#data = undefined;
		await this.#setCookie();
		await this.#ensureData();
	}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free