Skip to content

Types: InternalRouteHooks<TContext>

ts
type InternalRouteHooks<TContext> = object;

Type Parameters

Type ParameterDefault type
TContext extends RouteContext[] | undefinedundefined

Properties

PropertyTypeDescription
onAfterRouteEnterAddRouterAfterRouteHook<RouteContextToRoute<TContext>, RouteContextToRejection<TContext>>Registers a route hook to be called after the route is entered.
onAfterRouteLeaveAddRouterAfterRouteHook<RouteContextToRoute<TContext>, RouteContextToRejection<TContext>>Registers a route hook to be called after the route is left.
onAfterRouteUpdateAddRouterAfterRouteHook<RouteContextToRoute<TContext>, RouteContextToRejection<TContext>>Registers a route hook to be called after the route is updated.
onBeforeRouteEnterAddRouterBeforeRouteHook<RouteContextToRoute<TContext>, RouteContextToRejection<TContext>>Registers a route hook to be called before the route is entered.
onBeforeRouteLeaveAddRouterBeforeRouteHook<RouteContextToRoute<TContext>, RouteContextToRejection<TContext>>Registers a route hook to be called before the route is left.
onBeforeRouteUpdateAddRouterBeforeRouteHook<RouteContextToRoute<TContext>, RouteContextToRejection<TContext>>Registers a route hook to be called before the route is updated.