Properties
Optional
onError
onError?: ((error, variables, context) => void)
Type declaration
-
- (error, variables, context): void
-
Parameters
-
error: TError
-
variables: TVariables
-
context: undefined | TContext
Returns void
Optional
onSettled
onSettled?: ((data, error, variables, context) => void)
Type declaration
-
- (data, error, variables, context): void
-
Parameters
-
data: undefined | TData
-
error: null | TError
-
variables: TVariables
-
context: undefined | TContext
Returns void
Optional
onSuccess
onSuccess?: ((data, variables, context) => void)
Type declaration
-
- (data, variables, context): void
-
Parameters
-
data: TData
-
variables: TVariables
-
context: TContext
Returns void