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.

Note

Properties 

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.

Syntax 

1constructor(callback: RouteHandlerCallback) {
2        this.callback = callback; // Important: maintain a reference to the callback
3    }

Signature 

1public void new(callback: RouteHandlerCallback)

Returns 

  • None

See Also

Developer Preview Feature

Feature is available as a developer preview. Feature is not generally available unless or until Salesforce announces its general availability in documentation or in press releases or public statements. All commands, parameters, and other features are subject to change or deprecation at any time, with or without notice. Do not implement functionality developed with these commands or tools.

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!