UseCancelablePromiseCallbacks
Home > @gooddata/sdk-ui > UseCancelablePromiseCallbacks
UseCancelablePromiseCallbacks type
Callbacks for useCancelablePromise() hook
Signature:
export type UseCancelablePromiseCallbacks<TResult, TError> = {
onLoading?: () => void;
onPending?: () => void;
onCancel?: () => void;
onSuccess?: (result: TResult) => void;
onError?: (err: TError) => void;
};