useMutation
Found in 1 package: apollo-client
apollo-client(11 releases)
@apollo/client@4.3.0-rc.1BreakingIntroduced 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.3This 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.0This 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.2This release adds a callback‑based `context` option for `useMutation` and introduces a validation error for `@stream` without an `incrementalDelivery` handler.
@apollo/client@4.0.4BreakingThis 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.0BreakingApollo 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.6BreakingThe 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.11BreakingApollo 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.5BreakingThe 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.0BreakingApollo 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.0This 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