Documentation Index
Fetch the complete documentation index at: https://mintlify.com/get-convex/convex-react-query/llms.txt
Use this file to discover all available pages before exploring further.
convexAction creates a partial query options object for calling a Convex action through TanStack Query. Unlike convexQuery, actions are not reactive — they do not receive pushed updates from the Convex server and follow standard TanStack Query fetch semantics.
Signature
Parameters
The Convex action function reference, imported from
convex/_generated/api.Arguments to pass to the action. Pass
"skip" to disable the query — this sets enabled: false in the returned options. Can be omitted when the action takes no arguments.Return value
Returns a partial query options object containing:A stable, serializable query key for the action call.
Set to
Infinity by default. Override this when you want the action result to periodically refetch.Only present when
args is "skip". Set to false to prevent the action from running.Usage
Basic action query:staleTime for periodic refetch: