Skip to main content

Interface: MutationOptions<Args>

react.MutationOptions

Options for mutation.

Type parameters

NameType
Argsextends Record<string, Value>

Properties

optimisticUpdate

Optional optimisticUpdate: OptimisticUpdate<Args>

An optimistic update to apply along with this mutation.

An optimistic update locally updates queries while a mutation is pending. Once the mutation completes, the update will be rolled back.

Defined in

react/client.ts:203