toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-tanstack-query-core
/
tanstack.query.core
/
MutationCacheConfig
Mutation
Cache
Config
external
interface
MutationCacheConfig
(
source
)
Members
Properties
on
Error
Link copied to clipboard
abstract
val
onError
:
(
DefaultError
,
variables
:
Any
?
,
context
:
Any
?
,
mutation
:
Mutation
<
*
,
*
,
*
,
*
>
)
->
Promise
<
*
>
?
on
Mutate
Link copied to clipboard
abstract
val
onMutate
:
(
variables
:
Any
?
,
mutation
:
Mutation
<
*
,
*
,
*
,
*
>
)
->
Promise
<
*
>
?
on
Settled
Link copied to clipboard
abstract
val
onSettled
:
(
data
:
Any
?
,
DefaultError
?
,
variables
:
Any
?
,
context
:
Any
?
,
mutation
:
Mutation
<
*
,
*
,
*
,
*
>
)
->
Promise
<
*
>
?
on
Success
Link copied to clipboard
abstract
val
onSuccess
:
(
data
:
Any
?
,
variables
:
Any
?
,
context
:
Any
?
,
mutation
:
Mutation
<
*
,
*
,
*
,
*
>
)
->
Promise
<
*
>
?