Home / Function/ getFallback() — astro Function Reference

getFallback() — astro Function Reference

Architecture documentation for the getFallback() function in router.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  a2d4df41_22b3_3eaa_a73b_c26153c5e44b["getFallback()"]
  2b5c33e2_176e_e839_f05f_7f10493f4f74["router.ts"]
  a2d4df41_22b3_3eaa_a73b_c26153c5e44b -->|defined in| 2b5c33e2_176e_e839_f05f_7f10493f4f74
  6b23b6bb_d4a4_83cb_3896_2e31c0316793["transition()"]
  6b23b6bb_d4a4_83cb_3896_2e31c0316793 -->|calls| a2d4df41_22b3_3eaa_a73b_c26153c5e44b
  style a2d4df41_22b3_3eaa_a73b_c26153c5e44b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/transitions/router.ts lines 124–130

export function getFallback(): Fallback {
	const el = document.querySelector('[name="astro-view-transitions-fallback"]');
	if (el) {
		return el.getAttribute('content') as Fallback;
	}
	return 'animate';
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does getFallback() do?
getFallback() is a function in the astro codebase, defined in packages/astro/src/transitions/router.ts.
Where is getFallback() defined?
getFallback() is defined in packages/astro/src/transitions/router.ts at line 124.
What calls getFallback()?
getFallback() is called by 1 function(s): transition.

Analyze Your Own Codebase

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

Try Supermodel Free