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

Function pageReference

src/resolution/frameworks/react.ts:1648–1652  ·  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

1646
1647/** The reference for the page a value is: an export a loader picks, or a component name of the route's file. */
1648function pageReference(value: Loaded | null): string | undefined {
1649 if (value?.kind === 'export') return `import:${value.spec}#${value.name}`;
1650 if (value?.kind === 'name' && /^[A-Z]/.test(value.name) && value.name !== 'Outlet') return value.name;
1651 return undefined;
1652}
1653
1654/**
1655 * 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