toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-tanstack-query-core
/
tanstack.query.core
/
MutationObserverOptions
Mutation
Observer
Options
external
interface
MutationObserverOptions
<
TData
,
TError
,
TVariables
,
TContext
>
:
MutationOptions
<
TData
,
TError
,
TVariables
,
TContext
>
(
source
)
Members
Properties
_defaulted
Link copied to clipboard
abstract
var
_defaulted
:
Boolean
?
gc
Time
Link copied to clipboard
abstract
var
gcTime
:
JsDuration
?
meta
Link copied to clipboard
abstract
var
meta
:
MutationMeta
?
mutation
Fn
Link copied to clipboard
abstract
var
mutationFn
:
MutationFunction
<
TData
,
TVariables
>
?
mutation
Key
Link copied to clipboard
abstract
var
mutationKey
:
MutationKey
?
network
Mode
Link copied to clipboard
abstract
var
networkMode
:
NetworkMode
?
on
Error
Link copied to clipboard
abstract
var
onError
:
(
error
:
TError
,
variables
:
TVariables
,
context
:
TContext
?
)
->
Promise
<
*
>
?
on
Mutate
Link copied to clipboard
abstract
var
onMutate
:
(
variables
:
TVariables
)
->
Promise
<
TContext
?
>
?
on
Settled
Link copied to clipboard
abstract
var
onSettled
:
(
data
:
TData
?
,
error
:
TError
?
,
variables
:
TVariables
,
context
:
TContext
?
)
->
Promise
<
*
>
?
on
Success
Link copied to clipboard
abstract
var
onSuccess
:
(
data
:
TData
,
variables
:
TVariables
,
context
:
TContext
)
->
Promise
<
*
>
?
retry
Link copied to clipboard
abstract
var
retry
:
RetryValue
<
TError
>
?
retry
Delay
Link copied to clipboard
abstract
var
retryDelay
:
RetryDelayValue
<
TError
>
?
scope
Link copied to clipboard
abstract
var
scope
:
MutationScope
?
throw
On
Error
Link copied to clipboard
abstract
var
throwOnError
:
(
error
:
TError
)
->
Boolean
?