Change8
Symbol11 releases

useMutation

Found in 1 package: apollo-client

apollo-client(11 releases)

@apollo/client@4.3.0-rc.1Breaking
Sep 3, 2026

Introduced support for scalars that are arrays, allowing for more precise type handling in field policies and input objects. Also fixed an issue with the `variables` property in mutation update functions.

@apollo/client@4.2.0-alpha.3
Apr 27, 2026

This release enhances type safety for mutations by propagating the `errorPolicy` setting from `defaultOptions` and individual calls into the return types of `client.mutate` and `useMutation`.

@apollo/client@4.1.0
Jan 15, 2026

This release introduces significant enhancements to cache interaction, including support for array watching via fragments, new options for context in `useMutation`, and expanded support for GraphQL incremental delivery specifications like `@defer` (v17 alpha 9) and `@stream`.

@apollo/client@4.1.0-alpha.2
Nov 17, 2025

This release adds a callback‑based `context` option for `useMutation` and introduces a validation error for `@stream` without an `incrementalDelivery` handler.

@apollo/client@4.0.4Breaking
Sep 2, 2025

This patch release adds a type‑safe `skipToken` for query skipping, fixes unhandled promise rejections and invariant handling, and switches to a named `equal` export from `@wry/equality`, which requires import updates.

@apollo/client@4.0.0Breaking
Aug 21, 2025

Apollo Client 4.0 introduces a framework‑agnostic core, unified error handling, opt‑in local state, a new `dataState` property, and class‑based links, while removing `ApolloError` and several legacy APIs, requiring code migrations.

@apollo/client@4.0.0-rc.6Breaking
Jul 28, 2025

The update removes the `DataProxy` namespace, flips generic type orders, disallows the `mutation` option in `useMutation`, deprecates old type exports, and removes `ApolloConsumer`, requiring code adjustments.

v4.0.0-alpha.11Breaking
Apr 23, 2025

Apollo Client vX introduces major API changes: context no longer provides `cache`/`forceFetch`, `ApolloLink.execute` now requires a client argument, and `useMutation` typings are stricter, alongside new features like custom context typing and a re‑exported `gql`.

v4.0.0-alpha.5Breaking
Mar 31, 2025

The update replaces `FetchResult` with new `SubscribeResult` and `MutateResult` types, removes deprecated subscription callbacks, unifies error handling, and includes several bug fixes and SSR improvements.

v3.13.0Breaking
Feb 13, 2025

Apollo Client 3.13.0 adds the `useSuspenseFragment` hook, improves TypeScript typings, and fixes several bugs, while deprecating several callbacks and options.

v3.13.0-rc.0
Feb 7, 2025

This release introduces the useSuspenseFragment hook, improves type safety for updateQuery, adds multipart query deduplication, deprecates several callbacks and options, and includes several bug fixes and type corrections.

Track Symbol Changes

Use the Change8 MCP server or GitHub Action to get notified when useMutation changes.

Learn More