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

Function tanstackDestination

src/resolution/frameworks/tanstack-router.ts:343–349  ·  view source on GitHub ↗
(expr: string)

Source from the content-addressed store, hash-verified

341 * change of search parameters on the page the user is already on.
342 */
343export function tanstackDestination(expr: string): HrefLiteral | null {
344 const args = expr.trim();
345 const literal = args[0] === '{' ? toKeyOf(args) : readStringAt(args, 0);
346 if (literal === null) return null;
347 const path = tanstackPath(literal);
348 return path === null ? parseHrefExpression(args) : toHref(path);
349}
350
351/** The `to:` value of an object destination, or null when it has none or it is computed. */
352function toKeyOf(args: string): string | null {

Callers 3

tanstackLinkEdgesFunction · 0.90
resolveFunction · 0.85

Calls 5

readStringAtFunction · 0.90
parseHrefExpressionFunction · 0.90
toHrefFunction · 0.90
toKeyOfFunction · 0.85
tanstackPathFunction · 0.85

Tested by

no test coverage detected