PlexusActionHelpers
The action helpers for a defined plexus action
.catchError
Internal: Does the helper instance have any errors handlers to handle an error?
.hooks
Internal: Eject the external functions object returned to the user in the first argument of the action function
.onCatch(handler)
Add a new error handler for this action. This will catch any errors that occur during the execution of this action and prevent a crash.
Param | Description |
---|---|
handler | A function that will be called when an error occurs; omit to fail silently. |
.runErrorHandlers()
Internal: Run all available error handlers
.ignoreInit()
Ignore the default halt for preActions
.batch(fn)
Run a function. During that function's execution, any state changes will be batched and only applied once the function has finished.
Param | Description |
---|---|
fn | The function to run in a batch |