Skip to content

TrackedAction

State + runner returned by useTrackedAction.

A extends unknown[]

R

error: ActionErrorCategory | null

The last failure’s normalized category, or null.


isRunning: boolean

True while the action is in flight.


run: (…args) => Promise<R>

Run the action: emits ${name}_started, then ${name}_completed or ${name}_failed. Preserves the return value and re-throws.

A

Promise<R>