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

Function tanstackDestination

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

Source from the content-addressed store, hash-verified

420 * change of search parameters on the page the user is already on.
421 */
422export function tanstackDestination(expr: string): HrefLiteral | null {
423 const args = expr.trim();
424 const literal = args[0] === '{' ? toKeyOf(args) : readStringAt(args, 0);
425 if (literal === null) return null;
426 const path = tanstackPath(literal);
427 return path === null ? parseHrefExpression(args) : toHref(path);
428}
429
430/** The `to:` value of an object destination, or null when it has none or it is computed. */
431function 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