Skip to content

Types: PluginRouteHooks<TRoutes, TRejections>

ts
type PluginRouteHooks<TRoutes, TRejections> = object;

Type Parameters

Type ParameterDefault type
TRoutes extends RoutesRoutes
TRejections extends Rejection[]Rejection[]

Properties

PropertyTypeDescription
onAfterRouteEnterAddPluginAfterRouteHook<TRoutes, TRejections>Registers a global hook to be called after a route is entered.
onAfterRouteLeaveAddPluginAfterRouteHook<TRoutes, TRejections>Registers a global hook to be called after a route is left.
onAfterRouteUpdateAddPluginAfterRouteHook<TRoutes, TRejections>Registers a global hook to be called after a route is updated.
onBeforeRouteEnterAddPluginBeforeRouteHook<TRoutes, TRejections>Registers a global hook to be called before a route is entered.
onBeforeRouteLeaveAddPluginBeforeRouteHook<TRoutes, TRejections>Registers a global hook to be called before a route is left.
onBeforeRouteUpdateAddPluginBeforeRouteHook<TRoutes, TRejections>Registers a global hook to be called before a route is updated.
onErrorAddPluginErrorHook<TRoutes, TRejections>Registers a global hook to be called when an error occurs.