@apollo/client
Advanced tools
Changelog
3.10.0-rc.0
#11605 e2dd4c9
Thanks @alessbell! - Adds createMockFetch
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 for queryRef.toPromise()
to stabilize the API.
#11743 78891f9
Thanks @jerelmiller! - Remove alpha designation for createQueryPreloader
to stabilize the API.
Changelog
3.9.10
#11738 b1a5eb8
Thanks @jerelmiller! - Fix an issue where rerendering useBackgroundQuery
after the queryRef
had been disposed, either via the auto dispose timeout or by unmounting useReadQuery
, would cause the queryRef
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 of executeSubSelectedArray
calls if the array has 0 elements.
Changelog
3.9.8
#11706 8619bc7
Thanks @jerelmiller! - Fix issue in all suspense hooks where returning an empty array after calling fetchMore
would rerender the component with an empty list.
#11694 835d5f3
Thanks @phryneas! - Expose setErrorMessageHandler
from @apollo/client/dev
entrypoint.
#11689 cb8ffe5
Thanks @jerelmiller! - Fix issue where passing a new from
option to useFragment
would first render with the previous value before rerendering with the correct value.
#11713 642092c
Thanks @jerelmiller! - Fix issue where setting a default watchQuery
option in the ApolloClient
constructor could break startTransition
when used with suspense hooks.