Skip to content

Types: WithHooks

ts
type WithHooks = object;

Defines route hooks that can be applied before entering, updating, or leaving a route, as well as after these events.

Properties

PropertyTypeDescription
onAfterRouteEnter?MaybeArray<AfterRouteHook>Deprecated Use router.onAfterRouteEnter instead
onAfterRouteLeave?MaybeArray<AfterRouteHook>Deprecated Use router.onAfterRouteLeave instead
onAfterRouteUpdate?MaybeArray<AfterRouteHook>Deprecated Use router.onAfterRouteUpdate instead
onBeforeRouteEnter?MaybeArray<BeforeRouteHook>Deprecated Use router.onBeforeRouteEnter instead
onBeforeRouteLeave?MaybeArray<BeforeRouteHook>Deprecated Use router.onBeforeRouteLeave instead
onBeforeRouteUpdate?MaybeArray<BeforeRouteHook>Deprecated Use router.onBeforeRouteUpdate instead