Skip to content

Types: ResolvedRoute<TRoute>

ts
type ResolvedRoute<TRoute>: Readonly<{
  hash: string;
  href: Url;
  id: TRoute["id"];
  matched: TRoute["matched"];
  matches: TRoute["matches"];
  name: TRoute["name"];
  params: ExtractRouteParamTypes<TRoute>;
  query: ResolvedRouteQuery;
  state: ExtractRouteStateParamsAsOptional<TRoute["state"]>;
}>;

Represents a route that the router has matched to current browser location.

Type Parameters

Type ParameterDefault typeDescription
TRoute extends RouteRouteUnderlying Route that has been resolved.