Skip to content

Types: Hook<TContext> ​

ts
type Hook<TContext> = object;

A reusable hook that can be attached before or after a route enters, updates, or leaves.

Type Parameters ​

Type ParameterDefault type
TContext extends readonly RouteContext[][]

Properties ​

PropertyType
contextTContext
hookAnyFunction<MaybePromise<void>>