toggle menu
Kotlin Wrappers API Reference
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
)
:
JsTuple2
<
T
,
(
action
:
A
)
->
Unit
>
(
source
)