@spartanfx/react v1.0.0
@spartanfx/react / ITryActionOptions
Interface: ITryActionOptions
Interface for optional settings passed to the try
method in IAppContext
.
Properties
Property | Type | Description |
---|
actionName? | string | Label for the action, used for logging purposes. |
always? | () => any | Function executed after the action completes (either success or failure). |
catch? | (error ) => any | Function executed when an error occurs during the action. |
noLoading? | boolean | If true, disables the loading indicator shown during action execution. |
then? | (arg0 ) => any | Function executed after a successful action. |