TrackedAction
State + runner returned by useTrackedAction.
Type Parameters
Section titled “Type Parameters”A extends unknown[]
R
Properties
Section titled “Properties”error:
ActionErrorCategory|null
The last failure’s normalized category, or null.
isRunning
Section titled “isRunning”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.
Parameters
Section titled “Parameters”…A
Returns
Section titled “Returns”Promise<R>