Skip to content

Types: AddAfterRouteHook()

ts
type AddAfterRouteHook: (hook) => RouteHookRemove;

Adds a hook that is called after a route change. Returns a function to remove the hook.

Parameters

ParameterTypeDescription
hookAfterRouteHookAfterRouteHook The hook function to add.

Returns

RouteHookRemove

A function that removes the added hook.