Skip to content

Types: RouterRoute<TRoute> ​

ts
type RouterRoute<TRoute> = object;

Type Parameters ​

Type ParameterDefault type
TRoute extends ResolvedRouteResolvedRoute

Accessors ​

query ​

Get Signature ​

ts
get query(): URLSearchParams;
Returns ​

URLSearchParams

Set Signature ​

ts
set query(value): void;
Parameters ​
ParameterType
value| string | URLSearchParams | string[][] | Record<string, string> | undefined
Returns ​

void

Properties ​

PropertyModifierTypeDescription
canonicalreadonlyTRoute["canonical"]String value of the route's own URL. The same as href unless the route was matched through an alias.
datareadonlyRouteDataOf<TRoute["matches"]>What the route's loaders resolve to, keyed by loader name. A route whose only loader is unnamed exposes that loader's data here directly.
getTitlereadonlyTRoute["getTitle"]Title of the route.
hashreadonlystringHash value of the route.
hrefreadonlyTRoute["href"]String value of the resolved URL. When the route was matched through an alias this is the alias url.
idreadonlyTRoute["id"]Unique identifier for the route, generated by router.
matchedreadonlyTRoute["matched"]The specific route properties that were matched in the current route.
matchesreadonlyTRoute["matches"]The specific route properties that were matched in the current route, including any ancestors. Order of routes will be from greatest ancestor to narrowest matched.
namereadonlyTRoute["name"]Identifier for the route as defined by user. Name must be unique among named routes. Name is used for routing and for matching.
paramspublicTRoute["params"]-
statepublicTRoute["state"]-
updatereadonlyRouteUpdate<TRoute>Update the route.