A hook that handles route changes.

Parameters:
NameTypeDescription
argsobject

The arguments for the hook.

Properties
NameTypeDescription
handlerfunction

The handler function to run when the route changes.

Since
  • 4.2.0
Returns:

The route handler state and actions.

Type: 
object