useActionState

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)