Types: PluginRouteHooks<TRoutes, TRejections>
ts
type PluginRouteHooks<TRoutes, TRejections> = object;Type Parameters
| Type Parameter | Default type |
|---|---|
TRoutes extends Routes | Routes |
TRejections extends Rejection[] | Rejection[] |
Properties
| Property | Type | Description |
|---|---|---|
onAfterRouteEnter | AddPluginAfterRouteHook<TRoutes, TRejections> | Registers a global hook to be called after a route is entered. |
onAfterRouteLeave | AddPluginAfterRouteHook<TRoutes, TRejections> | Registers a global hook to be called after a route is left. |
onAfterRouteUpdate | AddPluginAfterRouteHook<TRoutes, TRejections> | Registers a global hook to be called after a route is updated. |
onBeforeRouteEnter | AddPluginBeforeRouteHook<TRoutes, TRejections> | Registers a global hook to be called before a route is entered. |
onBeforeRouteLeave | AddPluginBeforeRouteHook<TRoutes, TRejections> | Registers a global hook to be called before a route is left. |
onBeforeRouteUpdate | AddPluginBeforeRouteHook<TRoutes, TRejections> | Registers a global hook to be called before a route is updated. |
onError | AddPluginErrorHook<TRoutes, TRejections> | Registers a global hook to be called when an error occurs. |