Skip to content

Types: ExternalRouteHooks<TContext>

ts
type ExternalRouteHooks<TContext> = object;

Type Parameters

Type ParameterDefault type
TContext extends RouteContext[] | undefinedundefined

Properties

PropertyTypeDescription
onBeforeRouteEnterAddRouterBeforeRouteHook<RouteContextToRoute<TContext>, RouteContextToRejection<TContext>>Registers a route hook to be called before the route is entered.