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
| Property | Type |
|---|---|
parent | RouteCallbackParent<TRoute> |
push | RouterPush<[TRoute] | RouteContextToRoute<TRoute["context"]>> |
reject | RouterReject<RouteContextToRejection<TRoute["context"]>> |
replace | RouterReplace<[TRoute] | RouteContextToRoute<TRoute["context"]>> |
update | RouteUpdate<ResolvedRoute<TRoute>> |