Properties
Optional
_defaulted
_defaulted?: boolean
Optional
cacheTime
cacheTime?: number
Optional
meta
Optional
mutationFn
Optional
mutationKey
Optional
networkMode
Optional
onError
onError?: ((error, variables, context) => unknown)
Type declaration
- (error, variables, context): unknown
Parameters
error: TError
variables: TVariables
context: undefined | TContext
Returns unknown
Optional
onMutate
onMutate?: ((variables) => undefined | TContext | Promise<undefined | TContext>)
Type declaration
- (variables): undefined | TContext | Promise<undefined | TContext>
Returns undefined | TContext | Promise<undefined | TContext>
Optional
onSettled
onSettled?: ((data, error, variables, context) => unknown)
Type declaration
- (data, error, variables, context): unknown
Parameters
data: undefined | TData
error: null | TError
variables: TVariables
context: undefined | TContext
Returns unknown
Optional
onSuccess
onSuccess?: ((data, variables, context) => unknown)
Type declaration
- (data, variables, context): unknown
Parameters
data: TData
variables: TVariables
context: undefined | TContext
Returns unknown
Optional
retry
Optional
retryDelay
Optional
variables
variables?: TVariables