Skip to main content
Version: 1.0.0

ITryActionOptions

@spartanfx/react v1.0.0


@spartanfx/react / ITryActionOptions

Interface: ITryActionOptions

Interface for optional settings passed to the try method in IAppContext.

Properties

PropertyTypeDescription
actionName?stringLabel for the action, used for logging purposes.
always?() => anyFunction executed after the action completes (either success or failure).
catch?(error) => anyFunction executed when an error occurs during the action.
noLoading?booleanIf true, disables the loading indicator shown during action execution.
then?(arg0) => anyFunction executed after a successful action.