hasClientDirective() — astro Function Reference
Architecture documentation for the hasClientDirective() function in rehype.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 30bb266c_6336_f21e_2a8b_19a031810743["hasClientDirective()"] 89da4403_ab4a_62fa_64f0_d53bd0b3aee8["rehype.ts"] 30bb266c_6336_f21e_2a8b_19a031810743 -->|defined in| 89da4403_ab4a_62fa_64f0_d53bd0b3aee8 d17ed63a_5ec6_bc29_96d7_b3145cec7d5d["rehypeAnalyzeAstroMetadata()"] d17ed63a_5ec6_bc29_96d7_b3145cec7d5d -->|calls| 30bb266c_6336_f21e_2a8b_19a031810743 style 30bb266c_6336_f21e_2a8b_19a031810743 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/jsx/rehype.ts lines 184–188
function hasClientDirective(node: MdxJsxFlowElementHast | MdxJsxTextElementHast) {
return node.attributes.some(
(attr) => attr.type === 'mdxJsxAttribute' && attr.name.startsWith('client:'),
);
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does hasClientDirective() do?
hasClientDirective() is a function in the astro codebase, defined in packages/astro/src/jsx/rehype.ts.
Where is hasClientDirective() defined?
hasClientDirective() is defined in packages/astro/src/jsx/rehype.ts at line 184.
What calls hasClientDirective()?
hasClientDirective() is called by 1 function(s): rehypeAnalyzeAstroMetadata.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free