Skip to main content

ITryActionOptions

@spartanfx/react v1.2.2


@spartanfx/react / spfx / ITryActionOptions

Interface: ITryActionOptions

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

Properties

Options

PropertyTypeDescription
actionName?stringLabel for the action, used for logging purposes.
noLoading?booleanIf true, disables the loading indicator shown during action execution.

Events & callbacks

PropertyTypeDescription
always?() => anyFunction executed after the action completes (either success or failure).
catch?(error) => anyFunction executed when an error occurs during the action.
then?(arg0) => anyFunction executed after a successful action.