@apollo/client
4.3.5 · 19 Oct 2026MIT5.3M / weekRepositoryHomepagenpmAtom feed
3.14.1 is the newest release of 3.x.
In short
3 fixed
Release note
Patch Changes
Update the
Modifierfunction type to allowcache.modifyto return deeply partial data.Fix a potential crash when calling
clearStorewhile a query was running.Previously, calling
client.clearStore()while a query was running had one of these results:useQuerywould stay in aloading: truestate.useLazyQuerywould stay in aloading: truestate, but also crash with a"Cannot read property 'data' of undefined"error.
Now, in both cases, the hook will enter an error state with a
networkError, and the promise returned by theuseLazyQueryexecutefunction will return a result in an error state.Prevent accidental distribution on
cache.modifyfield modifiers when a field is a union type array.