Skip to content

Types: RouteCallbackContext<TRoute>

ts
type RouteCallbackContext<TRoute> = object;

Context provided to a callback attached to a route — an addView props getter, or a loader. Sourced from the route: rejections/routes from the route's context, and the parent from the route's matches.

Type Parameters

Type Parameter
TRoute extends Route

Properties

PropertyType
parentRouteCallbackParent<TRoute>
pushRouterPush<[TRoute] | RouteContextToRoute<TRoute["context"]>>
rejectRouterReject<RouteContextToRejection<TRoute["context"]>>
replaceRouterReplace<[TRoute] | RouteContextToRoute<TRoute["context"]>>
updateRouteUpdate<ResolvedRoute<TRoute>>