Kotlin Wrappers API Reference
Toggle table of contents
js
Platform filter
js
Switch theme
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
)
Online Documentation