Packages

@apollo/client

4.3.5 · 19 Oct 2026MIT5.3M / weekRepositoryHomepagenpmAtom feed

Your version

4.0.4

2 Sep 2025Where it was published

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 mutate function from the useMutation hook.

  • Fix an issue when invariant is called by external libraries when no dev error message handler is loaded.

  • Support skipToken with useQuery to 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 skip option more difficult.

  • Use named export equal instead of default from "@wry/equality"