MCPcopy
hub / github.com/TanStack/router / createStaticNode

Function createStaticNode

packages/router-core/src/new-process-route-tree.ts:511–531  ·  view source on GitHub ↗
(
  fullPath: string,
)

Source from the content-addressed store, hash-verified

509}
510
511function createStaticNode<T extends RouteLike>(
512 fullPath: string,
513): StaticSegmentNode<T> {
514 return {
515 kind: SEGMENT_TYPE_PATHNAME,
516 depth: 0,
517 pathless: null,
518 index: null,
519 static: null,
520 staticInsensitive: null,
521 dynamic: null,
522 optional: null,
523 wildcard: null,
524 route: null,
525 fullPath,
526 parent: null,
527 parse: null,
528 skipOnParamError: false,
529 parsingPriority: 0,
530 }
531}
532
533/**
534 * Keys must be declared in the same order as in `SegmentNode` type,

Callers 4

parseSegmentsFunction · 0.85
processRouteMasksFunction · 0.85
findSingleMatchFunction · 0.85
processRouteTreeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected