Properties
Optional
onError
onError?: ((error, variables, context, mutation) => unknown)
Type declaration
- (error, variables, context, mutation): unknown
Parameters
error: unknown
variables: unknown
context: unknown
mutation: Mutation<unknown, unknown, unknown, unknown>
Returns unknown
Optional
onMutate
onMutate?: ((variables, mutation) => unknown)
Type declaration
- (variables, mutation): unknown
Parameters
variables: unknown
mutation: Mutation<unknown, unknown, unknown, unknown>
Returns unknown
Optional
onSettled
onSettled?: ((data, error, variables, context, mutation) => unknown)
Type declaration
- (data, error, variables, context, mutation): unknown
Parameters
data: unknown
error: unknown
variables: unknown
context: unknown
mutation: Mutation<unknown, unknown, unknown, unknown>
Returns unknown
Optional
onSuccess
onSuccess?: ((data, variables, context, mutation) => unknown)
Type declaration
- (data, variables, context, mutation): unknown
Parameters
data: unknown
variables: unknown
context: unknown
mutation: Mutation<unknown, unknown, unknown, unknown>
Returns unknown