Kotlin Wrappers API Reference
Toggle table of contents
js
Target filter
js
Switch theme
Search in API
kotlin-react-core
/
react
/
useOptimistic
use
Optimistic
external
fun
<
T
>
useOptimistic
(
passthrough
:
T
)
:
StateInstance
<
T
>
(
source
)
external
fun
<
T
,
A
>
useOptimistic
(
passthrough
:
T
,
reducer
:
(
state
:
T
,
action
:
A
)
->
T
)
:
Tuple2
<
T
,
(
action
:
A
)
->
Unit
>
(
source
)
Online Documentation