transitionEnabledOnThisPage() — astro Function Reference
Architecture documentation for the transitionEnabledOnThisPage() function in router.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 3b2e9589_83d6_19e2_100c_4c1b800e1d48["transitionEnabledOnThisPage()"] 2b5c33e2_176e_e839_f05f_7f10493f4f74["router.ts"] 3b2e9589_83d6_19e2_100c_4c1b800e1d48 -->|defined in| 2b5c33e2_176e_e839_f05f_7f10493f4f74 6b23b6bb_d4a4_83cb_3896_2e31c0316793["transition()"] 6b23b6bb_d4a4_83cb_3896_2e31c0316793 -->|calls| 3b2e9589_83d6_19e2_100c_4c1b800e1d48 aad39bf4_3804_f21c_99b5_906d119040a5["onPopState()"] aad39bf4_3804_f21c_99b5_906d119040a5 -->|calls| 3b2e9589_83d6_19e2_100c_4c1b800e1d48 style 3b2e9589_83d6_19e2_100c_4c1b800e1d48 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/transitions/router.ts lines 33–34
export const transitionEnabledOnThisPage = () =>
inBrowser && !!document.querySelector('[name="astro-view-transitions-enabled"]');
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does transitionEnabledOnThisPage() do?
transitionEnabledOnThisPage() is a function in the astro codebase, defined in packages/astro/src/transitions/router.ts.
Where is transitionEnabledOnThisPage() defined?
transitionEnabledOnThisPage() is defined in packages/astro/src/transitions/router.ts at line 33.
What calls transitionEnabledOnThisPage()?
transitionEnabledOnThisPage() is called by 2 function(s): onPopState, transition.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free