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

Function inRouter

src/resolution/frameworks/react.ts:1364–1364  ·  view source on GitHub ↗
(s: RouteScope)

Source from the content-addressed store, hash-verified

1362 // the top of a component's own `<Routes>` it is wherever another route
1363 // mounts the component (`<Route path="shop/*" element={<Shop/>}>`).
1364 const inRouter = (s: RouteScope): boolean => routers.some((r) => r.start < s.start && r.end >= s.end);
1365 const addressed = (s: RouteScope): boolean => {
1366 if (!s.index) return true;
1367 const outer = around(s.start, s.end);

Callers 1

addressedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected