new()

Creates a route handler module.

Route handler modules, which are used in client-side routing, aren’t the same as route handler functions, which are used in server-side routing.

Method InputTypeRequired/OptionalDescription
callbackRouteHandlerCallback functionRequiredA reference to a route handler callback. Each RouteHandlerCallback takes a RouteDestination object. Make sure to save the reference to this callback. RouteHandler.update invokes the callback to return the ViewSet for a given RouteDestination.
  • None

See Also