Properties
Optional
cacheTime
cacheTime?: number
Optional
meta
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
useErrorBoundary
useErrorBoundary?: boolean | ((error) => boolean)
Type declaration
- (error): boolean
Returns boolean
Construct a type with the properties of T except for those in type K.