- useQueuedAction<Data, Payload>(run, options?): IResult<Data, Payload>
Type Parameters
- Data extends unknown = any
- Payload extends unknown = any
- The result object containing the loading state, error state, and the execute function to trigger the action execution.
Executes an asynchronous action with queuing and provides loading and error state.