useActionState<T, A> function
(T, void Function(A))
useActionState<T, A>(])
Returns action state and a dispatcher for async actions.
Requires a React 19 or newer runtime that exports useActionState. Calling
this hook with an older runtime throws UnsupportedError.
Implementation
(T, void Function(A)) useActionState<T, A>(
Action<T, A> action,
T initialState, [
String? permalink,
]) =>
currentReactRuntime.binding.useActionState(action, initialState, permalink);