Fix issue where loading remains true after observer.refetch is called repeatedly with different variables when the same data are returned.
@alessbell in #10143
Fix race condition where useFragment_experimental could receive cache updates before initially calling cache.watch in useEffect.
@benjamn in #10212
Implement useFragment_experimental hook, which represents a lightweight live binding into the ApolloCache, and never triggers network requests of its own.
@benjamn in #8782
Allow registering named fragments with InMemoryCache to support using ...NamedFragment in queries without redeclaring NamedFragment repeatedly in every query that uses it.
@benjamn in #9764
Fix issue where loading remains true after observer.refetch is called repeatedly with different variables when the same data are returned.
@alessbell in #10143
Fix race condition where useFragment_experimental could receive cache updates before initially calling cache.watch in useEffect.
@benjamn in #10212
Implement useFragment_experimental hook, which represents a lightweight live binding into the ApolloCache, and never triggers network requests of its own.
@benjamn in #8782
Allow registering named fragments with InMemoryCache to support using ...NamedFragment in queries without redeclaring NamedFragment repeatedly in every query that uses it.
@benjamn in #9764
Delay calling onCompleted and onError callbacks passed to useQuery using Promise.resolve().then(() => ...) to fix issue #9794.
@dylanwulf in #9823
Replace concast.cleanup method with simpler concast.beforeNext API, which promises to call the given callback function just before the next result/error is delivered. In addition, concast.removeObserver no longer takes a quietly?: boolean parameter, since that parameter was partly responsible for cleanup callbacks sometimes not getting called.
@benjamn in #9718
Allow preserving header name capitalization when creating an HttpLink with createHttpLink({ uri, preserveHeaderCase: true }). Otherwise, header names are converted to lowercase to prevent case-sensitivity bugs.
@MrDoomBringer in #9891
Make queries with a pollInterval respect the no-cache fetch policy, instead of writing polled results into the cache.
@MrDoomBringer in #10020
Deprecate the onSubscriptionData callback in favor of a new onData callback for the useSubscription hook. Deprecate the onSubscriptionComplete callback in favor of a new onComplete callback for the useSubscription hook.
@jerelmiller in #10134
Potentially disruptive
The optional subscribeAndCount testing utility exported from @apollo/client/testing/core now takes a single generic TResult type parameter, instead of TData. This type will typically be inferred from the observable argument type, but if you have any explicit calls to subscribeAndCount<TData>(...) in your own codebase, you may need to adjust those calls accordingly.
@benjamn in #9718
Apollo Client 3.6.10 (2022-09-29)
... (truncated)
Commits
e6ad3c9 Bump @apollo/client npm version to 3.7.1.
81bc6b4 Detect if diff changes between useFragment and cache.watch (#10212)
b03dff2 Remaining Local Resolvers wordsmithing (#10214)
3c7736d Remove (deprecated) from Local resolvers doc title (#10213)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps @apollo/client from 3.5.10 to 3.7.1.
Release notes
Sourced from
@apollo/client
's releases.... (truncated)
Changelog
Sourced from
@apollo/client
's changelog.... (truncated)
Commits
e6ad3c9
Bump@apollo/client
npm version to 3.7.1.81bc6b4
Detect ifdiff
changes betweenuseFragment
andcache.watch
(#10212)b03dff2
Remaining Local Resolvers wordsmithing (#10214)3c7736d
Remove (deprecated) from Local resolvers doc title (#10213)8bfdec1
Update Local Resolvers docs (#10211)896e5d8
docs: add TypedDocumentNode example (#10031)b4dd365
Stop caching~/.npm
directory during Filesize/Tests CircleCI jobs (#10209)643c45c
Use customconfig/bundlesize.ts
script to avoidiltorb
dependency (#10206)b0cef62
Update apollo-link-rest.md (#10138)b23234e
Fix typo (#10204)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)