toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-react-core
/
react
/
useActionState
use
Action
State
fun
<
S
>
useActionState
(
initialState
:
S
,
permalink
:
String
?
=
undefined
,
action
:
suspend
CoroutineScope
.
(
state
:
S
)
->
S
)
:
ActionStateInstance1
<
S
>
(
source
)
fun
<
S
,
P
>
useActionState
(
initialState
:
S
,
permalink
:
String
?
=
undefined
,
action
:
suspend
CoroutineScope
.
(
state
:
S
,
payload
:
P
)
->
S
)
:
ActionStateInstance2
<
S
,
P
>
(
source
)