Skip to main content

Interface: ReactAction<Action>

react.ReactAction

An interface to execute a Convex action on the server.

Type parameters

NameType
Actionextends FunctionReference<"action">

Callable

ReactAction

ReactAction(...args): Promise<FunctionReturnType<Action>>

Execute the function on the server, returning a Promise of its return value.

Parameters

NameTypeDescription
...argsOptionalRestArgs<Action>Arguments for the function to pass up to the server.

Returns

Promise<FunctionReturnType<Action>>

The return value of the server-side function call.

Defined in

react/client.ts:117