Interface: ReactAction<Action>
react.ReactAction
An interface to execute a Convex action on the server.
Type parameters
Name | Type |
---|---|
Action | extends FunctionReference <"action" > |
Callable
ReactAction
▸ ReactAction(...args
): Promise
<FunctionReturnType
<Action
>>
Execute the function on the server, returning a Promise
of its return value.
Parameters
Name | Type | Description |
---|---|---|
...args | OptionalRestArgs <Action > | Arguments for the function to pass up to the server. |
Returns
Promise
<FunctionReturnType
<Action
>>
The return value of the server-side function call.