useActionStateRaw

external fun <S> useActionStateRaw(    action: (state: S) -> PromiseResult<S>,     initialState: S,     permalink: String? = definedExternally): ActionStateInstance1<S>(source)
external fun <S, P> useActionStateRaw(    action: (state: S, payload: P) -> PromiseResult<S>,     initialState: S,     permalink: String? = definedExternally): ActionStateInstance2<S, P>(source)

Online Documentation