Skip to content

Commit

Permalink
Merge branch 'main' into issue-10105-loading-stays-true
Browse files Browse the repository at this point in the history
  • Loading branch information
alessbell authored Oct 11, 2022
2 parents 8412af2 + 453ba72 commit fef5de6
Show file tree
Hide file tree
Showing 7 changed files with 688 additions and 685 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Apollo Client 3.7.0 (in development)
## Apollo Client 3.7.0 (2022-09-30)

### New Features

Expand Down Expand Up @@ -28,12 +28,15 @@
- Make queries with a `pollInterval` respect the `no-cache` fetch policy, instead of writing polled results into the cache. <br/>
[@MrDoomBringer](https://github.com/MrDoomBringer) in [#10020](https://github.com/apollographql/apollo-client/pull/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.<br/>
[@jerelmiller](https://github.com/jerelmiller) in [#10134](https://github.com/apollographql/apollo-client/pull/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. <br/>
[@benjamn](https://github.com/benjamn) in [#9718](https://github.com/apollographql/apollo-client/pull/9718)

## Apollo Client 3.6.10 (unreleased)
## Apollo Client 3.6.10 (2022-09-29)

### Improvements

Expand Down
6 changes: 1 addition & 5 deletions ROADMAP.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 🔮 Apollo Client Roadmap

**Last updated: Aug 2022**
**Last updated: Oct 2022**

For up to date release notes, refer to the project's [Change Log](https://github.com/apollographql/apollo-client/blob/main/CHANGELOG.md).

Expand All @@ -13,10 +13,6 @@ For up to date release notes, refer to the project's [Change Log](https://github

---

## 3.7

- Release 3.7 will focus on adding support for the `@defer` directive & adding a new hook `useFragment`. See Github [3.7 Milestone](https://github.com/apollographql/apollo-client/milestone/28) for more details.

## 3.8

- Release 3.8: will focus on cache & performance improvements and adding a new hook: `useBackgroundQuery`, See Github [3.8 Milestone](https://github.com/apollographql/apollo-client/milestone/30) for more details.
Expand Down
2 changes: 1 addition & 1 deletion docs/source/data/defer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "Using the @defer directive in Apollo Client"
description: Fetch slower schema fields asynchronously
---

> ⚠️ **The `@defer` directive is currently at the [preview stage](https://www.apollographql.com/docs/resources/release-stages/#preview) in Apollo Client, and is available by installing `@apollo/client@next`.** If you have feedback on it, please let us know via [GitHub issues](https://github.com/apollographql/apollo-client/issues/new?assignees=&labels=&template=bug.md).
> ⚠️ **The `@defer` directive is currently at the [preview stage](https://www.apollographql.com/docs/resources/release-stages/#preview) in Apollo Client, and is available by installing `@apollo/client@latest`.** If you have feedback on it, please let us know via [GitHub issues](https://github.com/apollographql/apollo-client/issues/new?assignees=&labels=&template=bug.md).
Beginning with version `3.7.0`, Apollo Client Web provides preview support for [the `@defer` directive](https://github.com/graphql/graphql-wg/blob/main/rfcs/DeferStream.md), which enables your queries to receive data for specific fields asynchronously. This is helpful whenever some fields in a query take much longer to resolve than the others.

Expand Down
2 changes: 1 addition & 1 deletion docs/source/development-testing/testing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ export const cache = new ApolloClient({

## Testing local state

In order to properly test local state using `MockedProvider`, you'll need to passed a configured cache into `MockedProvider` itself.
In order to properly test local state using `MockedProvider`, you'll need to pass a configured cache into `MockedProvider` itself.

`MockedProvider` creates its own ApolloClient instance behind the scenes like this:

Expand Down
Loading

0 comments on commit fef5de6

Please sign in to comment.