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
hashreadonlyTRoute["hash"]Hash value of the route.
hooksreadonlyTRoute["hooks"]Internal The stores for routes including ancestors.
hrefreadonlyTRoute["href"]String value of the resolved 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.