Releases: apollographql/apollo-client
v3.9.11
Patch Changes
- #11769
04132af
Thanks @jerelmiller! - Fix an issue where usingskipToken
or theskip
option withuseSuspenseQuery
in React's strict mode would perform a network request.
v3.10.0-rc.0
Minor Changes
-
#11605
e2dd4c9
Thanks @alessbell! - AddscreateMockFetch
utility for integration testing that includes the link chain -
#11605
e2dd4c9
Thanks @alessbell! - Adds proxiedSchema and createMockSchema testing utilities -
#11743
78891f9
Thanks @jerelmiller! - Remove alpha designation forqueryRef.toPromise()
to stabilize the API. -
#11743
78891f9
Thanks @jerelmiller! - Remove alpha designation forcreateQueryPreloader
to stabilize the API.
v3.9.10
Patch Changes
-
#11738
b1a5eb8
Thanks @jerelmiller! - Fix an issue where rerenderinguseBackgroundQuery
after thequeryRef
had been disposed, either via the auto dispose timeout or by unmountinguseReadQuery
, would cause thequeryRef
to be recreated potentially resulting in another network request. -
#11738
b1a5eb8
Thanks @jerelmiller! - Allow queryRefs to be disposed of synchronously when a suspense hook unmounts. This prevents some situations where using a suspense hook with the same query/variables as the disposed queryRef accidentally used the disposed queryRef rather than creating a new instance. -
#11670
cc5c03b
Thanks @phryneas! - Bail out ofexecuteSubSelectedArray
calls if the array has 0 elements.
v3.9.9
v3.9.8
Patch Changes
-
#11706
8619bc7
Thanks @jerelmiller! - Fix issue in all suspense hooks where returning an empty array after callingfetchMore
would rerender the component with an empty list. -
#11694
835d5f3
Thanks @phryneas! - ExposesetErrorMessageHandler
from@apollo/client/dev
entrypoint. -
#11689
cb8ffe5
Thanks @jerelmiller! - Fix issue where passing a newfrom
option touseFragment
would first render with the previous value before rerendering with the correct value. -
#11713
642092c
Thanks @jerelmiller! - Fix issue where setting a defaultwatchQuery
option in theApolloClient
constructor could breakstartTransition
when used with suspense hooks.
v3.10.0-alpha.1
Patch Changes
- #11465
7623da7
Thanks @alessbell! - AddwatchFragment
method to the cache and expose it on ApolloClient, refactoruseFragment
usingwatchFragment
.
v3.9.7
v3.9.6
v3.9.5
Patch Changes
-
#11595
8c20955
Thanks @phryneas! - Bumps the dependencyrehackt
to 0.0.5 -
#11592
1133469
Thanks @Stephen2! - StrengthenMockedResponse.newData
type -
#11579
1ba2fd9
Thanks @jerelmiller! - Fix issue where partial data is reported touseQuery
when usingnotifyOnNetworkStatusChange
after it errors while another overlapping query succeeds. -
#11579
1ba2fd9
Thanks @jerelmiller! - Fix an issue where a partial cache write for an errored query would result in automatically refetching that query. -
#11562
65ab695
Thanks @mspiess! - Mocks with an infinite delay no longer require result or error
v3.9.4
Patch Changes
-
#11403
b0c4f3a
Thanks @jerelmiller! - Fix issue inuseLazyQuery
that results in a double network call when calling the execute function with no arguments after having called it previously with another set of arguments. -
#11576
e855d00
Thanks @alessbell! - Revert PR #11202 to fix caching bug reported in #11560