Function useSinglerunAction
- useSinglerunAction<Data, Payload>(run, options?): IResult<Data, Payload>
Type Parameters
- Data extends unknown = any
- Payload extends unknown = any
- An object containing the loading state, error state, and an
execute
function to execute the asynchronous action.
Function useSinglerunAction
Description
This function is a custom hook that helps to handle asynchronous actions and manage loading and error states.