Types: InternalRouteHooks<TContext>
ts
type InternalRouteHooks<TContext> = object;Type Parameters
| Type Parameter | Default type |
|---|---|
TContext extends RouteContext[] | undefined | undefined |
Properties
| Property | Type | Description |
|---|---|---|
onAfterRouteEnter | AddRouterAfterRouteHook<RouteContextToRoute<TContext>, RouteContextToRejection<TContext>> | Registers a route hook to be called after the route is entered. |
onAfterRouteLeave | AddRouterAfterRouteHook<RouteContextToRoute<TContext>, RouteContextToRejection<TContext>> | Registers a route hook to be called after the route is left. |
onAfterRouteUpdate | AddRouterAfterRouteHook<RouteContextToRoute<TContext>, RouteContextToRejection<TContext>> | Registers a route hook to be called after the route is updated. |
onBeforeRouteEnter | AddRouterBeforeRouteHook<RouteContextToRoute<TContext>, RouteContextToRejection<TContext>> | Registers a route hook to be called before the route is entered. |
onBeforeRouteLeave | AddRouterBeforeRouteHook<RouteContextToRoute<TContext>, RouteContextToRejection<TContext>> | Registers a route hook to be called before the route is left. |
onBeforeRouteUpdate | AddRouterBeforeRouteHook<RouteContextToRoute<TContext>, RouteContextToRejection<TContext>> | Registers a route hook to be called before the route is updated. |