Skip to main content
The useMutation hook provides a simple way to perform create, update, and delete operations on records in React components.

Import

Usage

Parameters

Return Value

Operations

Create

Update (Full)

Patch (Partial Update)

For partial updates, use the same mutate function:
The SDK automatically uses PATCH when only some fields are provided.

Delete

Loading States

Error Handling

Optimistic Updates

Combined with Queries

TypeScript

Complete Example

Next Steps