@apollo/client
4.3.5 · 19 Oct 2026MIT5.3M / weekRepositoryHomepagenpmAtom feed
Your version
4.3.5 is the newest release of 4.x.
In short
1 new3 fixed
Release note
Patch Changes
Prevent unhandled rejections from the promise returned by calling the
mutatefunction from theuseMutationhook.Fix an issue when
invariantis called by external libraries when no dev error message handler is loaded.Support
skipTokenwithuseQueryto provide a more type-safe way to skip query execution.import { skipToken, useQuery } from "@apollo/client/react"; // Use `skipToken` in place of `skip: true` for better type safety // for required variables const { data } = useQuery(QUERY, id ? { variables: { id } } : skipToken);Note: this change is provided as a patch within the 4.0 minor version because the changes to TypeScript validation with required variables in version 4.0 made using the
skipoption more difficult.Use named export
equalinstead of default from"@wry/equality"