MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / mount

Function mount

src/resolution/frameworks/react.ts:1409–1412  ·  view source on GitHub ↗
(at: number)

Source from the content-addressed store, hash-verified

1407 routes.push({ path, parts: partsOf.get(scope)!, component: scope.component, lazy: scope.lazy, layouts, at: scope.at });
1408 }
1409 const mount = (at: number): { parts: RoutePart[]; layouts: string[] } => {
1410 const outer = around(at, at);
1411 return { parts: outer.map((c) => c.part), layouts: outer.filter(layout).map(layoutOf) };
1412 };
1413 return {
1414 routes: routes.sort((a, b) => a.at - b.at),
1415 names: names.map((n) => {

Callers 2

scanRoutesFunction · 0.70
main.tsFile · 0.50

Calls 2

aroundFunction · 0.85
mapMethod · 0.80

Tested by

no test coverage detected