@apollo/client
4.3.5 · 19 Oct 2026MIT5.3M / weekRepositoryHomepagenpmAtom feed
3.14.1 is the newest release of 3.x.
In short
1 new6 fixed
Release note
Patch Changes
Fixes race conditions in useReactiveVar that may prevent updates to the reactive variable from propagating through the hook.
Ensures GraphQL errors returned in subscription payloads adhere to the
errorPolicyset inclient.subscribe(...)calls.Use separate type imports in useSuspenseQuery and useBackgroundQuery to workaround SWC compiler issue.
Adds a new devtools registration mechanism and tweaks the mechanism behind the
"devtools not found" mechanic.Fix an issue where race conditions when rapidly switching between variables would sometimes result in the wrong
datareturned from the query. Specifically this occurs when a query is triggered with an initial set of variables (VariablesA), then triggers the same query with another set of variables (VariablesB) but switches back to theVariablesAbefore the response forVariablesBis returned. Previously this would result in the data forVariablesBto be displayed whileVariablesAwas active. The data is forVariablesAis now properly returned.Fix typo in error message: "occured" -> "occurred"
Fixes an issue where refetching from
useBackgroundQueryviarefetchwith an error after an error was already fetched would get stuck in a loading state.