shouldCopyProps() — astro Function Reference
Architecture documentation for the shouldCopyProps() function in swap-functions.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD a0484c86_a5ad_d0be_c721_d084aadc950b["shouldCopyProps()"] 12084e8e_15f3_27ac_8f8b_d442375ff33d["swap-functions.ts"] a0484c86_a5ad_d0be_c721_d084aadc950b -->|defined in| 12084e8e_15f3_27ac_8f8b_d442375ff33d 3d1986b3_a5c3_1ecd_66e2_b7d4e1f116b2["swapBodyElement()"] 3d1986b3_a5c3_1ecd_66e2_b7d4e1f116b2 -->|calls| a0484c86_a5ad_d0be_c721_d084aadc950b style a0484c86_a5ad_d0be_c721_d084aadc950b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/transitions/swap-functions.ts lines 167–170
const shouldCopyProps = (el: HTMLElement): boolean => {
const persistProps = el.dataset.astroTransitionPersistProps;
return persistProps == null || persistProps === 'false';
};
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does shouldCopyProps() do?
shouldCopyProps() is a function in the astro codebase, defined in packages/astro/src/transitions/swap-functions.ts.
Where is shouldCopyProps() defined?
shouldCopyProps() is defined in packages/astro/src/transitions/swap-functions.ts at line 167.
What calls shouldCopyProps()?
shouldCopyProps() is called by 1 function(s): swapBodyElement.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free