Skip to content

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