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

Function pageReference

src/resolution/frameworks/react.ts:1626–1630  ·  view source on GitHub ↗

The reference for the page a value is: an export a loader picks, or a component name of the route's file.

(value: Loaded | null)

Source from the content-addressed store, hash-verified

1624
1625/** The reference for the page a value is: an export a loader picks, or a component name of the route's file. */
1626function pageReference(value: Loaded | null): string | undefined {
1627 if (value?.kind === 'export') return `import:${value.spec}#${value.name}`;
1628 if (value?.kind === 'name' && /^[A-Z]/.test(value.name) && value.name !== 'Outlet') return value.name;
1629 return undefined;
1630}
1631
1632/**
1633 * What the function `text` resolves to when called, `param` handed to its

Callers 2

routeRenderFunction · 0.85
lazyPropertiesRenderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected