Packages

@apollo/client

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

Your version

3.10.5

12 Jun 2024Where it was published

3.14.1 is the newest release of 3.x.

In short

1 new9 fixed

Release note

Patch Changes

  • Switch useRenderGuard to an approach not accessing React's internals

  • useLoadableQuery: ensure that loadQuery is updated if the ApolloClient instance changes

  • Fixes #11849 by reevaluating window.fetch each time BatchHttpLink uses it, if not configured via options.fetch. Takes the same approach as PR #8603 which fixed the same issue in HttpLink.

  • Fix a bug where calling the useMutation reset function would point the hook to an outdated client reference.

  • Fix graphQLErrors in Error Link if networkError.result is an empty string

  • Prevent writing to a ref in render in useMutation.
    As a result, you might encounter problems in the future if you call the mutation's execute function during render. Please note that this was never supported behavior, and we strongly recommend against it.

  • Ensure covariant behavior: MockedResponse<X,Y> should be assignable to MockedResponse

  • Avoid usage of useRef in useInternalState to prevent ref access in render.

  • Add missing name to tuple member (fix TS5084)

  • Fix a bug where useLazyQuery would not pick up a client change.