Sourced from @apollo/client
's
releases.
v3.11.4
Patch Changes
#11994
41b17e5
Thanks@jerelmiller
! - Update theModifier
function type to allowcache.modify
to return deeply partial data.#11989
e609156
Thanks@phryneas
! - Fix a potential crash when callingclearStore
while a query was running.Previously, calling
client.clearStore()
while a query was running had one of these results:
useQuery
would stay in aloading: true
state.useLazyQuery
would stay in aloading: true
state, 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 theuseLazyQuery
execute
function will return a result in an error state.#11994
41b17e5
Thanks@jerelmiller
! - Prevent accidental distribution oncache.modify
field modifiers when a field is a union type array.v3.11.3
Patch Changes
#11984
5db1659
Thanks@jerelmiller
! - Fix an issue where multiple fetches with results that returned errors would sometimes set thedata
property with anerrorPolicy
ofnone
.#11974
c95848e
Thanks@jerelmiller
! - Fix an issue wherefetchMore
would write its result data to the cache when using it with ano-cache
fetch policy.#11974
c95848e
Thanks@jerelmiller
! - Fix an issue where executingfetchMore
with ano-cache
fetch policy could sometimes result in multiple network requests.#11974
c95848e
Thanks@jerelmiller
! -Potentially disruptive change
When calling
fetchMore
with a query that has ano-cache
fetch policy,fetchMore
will now throw if anupdateQuery
function is not provided. This provides a mechanism to merge the results from thefetchMore
call with the query's previous result.v3.11.2
Patch Changes
- #11980
38c0a2c
Thanks@jerelmiller
! - Fix missinggetServerSnapshot
error when usinguseSubscription
on the server.
Sourced from @apollo/client
's
changelog.
3.11.4
Patch Changes
#11994
41b17e5
Thanks@jerelmiller
! - Update theModifier
function type to allowcache.modify
to return deeply partial data.#11989
e609156
Thanks@phryneas
! - Fix a potential crash when callingclearStore
while a query was running.Previously, calling
client.clearStore()
while a query was running had one of these results:
useQuery
would stay in aloading: true
state.useLazyQuery
would stay in aloading: true
state, 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 theuseLazyQuery
execute
function will return a result in an error state.#11994
41b17e5
Thanks@jerelmiller
! - Prevent accidental distribution oncache.modify
field modifiers when a field is a union type array.3.11.3
Patch Changes
#11984
5db1659
Thanks@jerelmiller
! - Fix an issue where multiple fetches with results that returned errors would sometimes set thedata
property with anerrorPolicy
ofnone
.#11974
c95848e
Thanks@jerelmiller
! - Fix an issue wherefetchMore
would write its result data to the cache when using it with ano-cache
fetch policy.#11974
c95848e
Thanks@jerelmiller
! - Fix an issue where executingfetchMore
with ano-cache
fetch policy could sometimes result in multiple network requests.#11974
c95848e
Thanks@jerelmiller
! -Potentially disruptive change
When calling
fetchMore
with a query that has ano-cache
fetch policy,fetchMore
will now throw if anupdateQuery
function is not provided. This provides a mechanism to merge the results from thefetchMore
call with the query's previous result.3.11.2
Patch Changes
- #11980
38c0a2c
Thanks@jerelmiller
! - Fix missinggetServerSnapshot
error when usinguseSubscription
on the server.
c6e8182
Version Packages (#11991)41b17e5
Fix issue returning arrays from cache.modify modifier functions when the
arra...9e4b798
renovate: don't request reviewers (#11992)e609156
Fix a potential crash when calling clearStore
while a query
was running. (#...8aa627f
Version Packages (#11985)5db1659
Fix issue where multiple fetches might report data
if
result contained erro...c95848e
Fix fetchMore
for queries with no-cache
fetch
policies (#11974)076bb63
Version Packages (#11981)38c0a2c
Fix missing getServerSnapshot
function for useSubscription
(#11980)07693a2
chore(deps): update all devdependencies (#11979)