printHierarchy() — react Function Reference
Architecture documentation for the printHierarchy() function in algolia.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD d55cbbc1_e6b5_49fb_fbaa_ad9aa67b8fd7["printHierarchy()"] 9ff31f2c_c740_f564_0d2e_d722cd4acd1a["algolia.ts"] d55cbbc1_e6b5_49fb_fbaa_ad9aa67b8fd7 -->|defined in| 9ff31f2c_c740_f564_0d2e_d722cd4acd1a style d55cbbc1_e6b5_49fb_fbaa_ad9aa67b8fd7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/react-mcp-server/src/utils/algolia.ts lines 23–43
export function printHierarchy(
hit: DocSearchHit | InternalDocSearchHit,
): string {
let val = `${hit.hierarchy.lvl0} > ${hit.hierarchy.lvl1}`;
if (hit.hierarchy.lvl2 != null) {
val = val.concat(` > ${hit.hierarchy.lvl2}`);
}
if (hit.hierarchy.lvl3 != null) {
val = val.concat(` > ${hit.hierarchy.lvl3}`);
}
if (hit.hierarchy.lvl4 != null) {
val = val.concat(` > ${hit.hierarchy.lvl4}`);
}
if (hit.hierarchy.lvl5 != null) {
val = val.concat(` > ${hit.hierarchy.lvl5}`);
}
if (hit.hierarchy.lvl6 != null) {
val = val.concat(` > ${hit.hierarchy.lvl6}`);
}
return val;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does printHierarchy() do?
printHierarchy() is a function in the react codebase, defined in compiler/packages/react-mcp-server/src/utils/algolia.ts.
Where is printHierarchy() defined?
printHierarchy() is defined in compiler/packages/react-mcp-server/src/utils/algolia.ts at line 23.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free