useAction()
function useAction<Options, RT>(promiseFn): object;
Defined in: use-action.ts:26
Type Parameters
| Type Parameter | Default type |
|---|---|
Options | void |
RT | unknown |
Parameters
| Parameter | Type |
|---|---|
promiseFn | (options) => Promise<RT> |
Returns
object
| Name | Type | Defined in |
|---|---|---|
execute() | (options) => Promise<RT> | use-action.ts:14 |
isPending | Signal<boolean> | use-action.ts:13 |