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, useGlobal)
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 | Default | Description |
---|---|---|
handler | A function that will be called when an error occurs; omit to fail silently. | |
useGlobal | true | Should the global error handler be used? (default: true) |
.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 |