Skip to content
This repository was archived by the owner on Apr 13, 2023. It is now read-only.

Commit 2788981

Browse files
authored
Merge pull request #2214 from apollographql/hwillson/await-refetch-queries
Add `awaitRefetchQueries` changes from recent `apollo-client` release
2 parents 2f8a340 + 2879767 commit 2788981

File tree

5 files changed

+1958
-1956
lines changed

5 files changed

+1958
-1956
lines changed

Changelog.md

+18-10
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,16 @@
44

55
- Fixed an issue in `getDataFromTree` where queries that threw more than one
66
error had error messages swallowed, and returned an invalid error object
7-
with circular references. Multiple errors are now preserved.
7+
with circular references. Multiple errors are now preserved. <br/>
88
[@anand-sundaram-zocdoc](https://github.com/anand-sundaram-zocdoc) in [#2133](https://github.com/apollographql/react-apollo/pull/2133)
9+
- Update both the `<Mutation />` component and `graphql` HOC to accept a new
10+
`awaitRefetchQueries` prop (boolean). When set to `true`, queries specified
11+
in `refetchQueries` will be completed before the mutation itself is
12+
completed. `awaitRefetchQueries` is `false` by default, which means
13+
`refetchQueries` are usually completed after the mutation has resolved.
14+
Relates to Apollo Client
15+
[PR #3169](https://github.com/apollographql/apollo-client/pull/3169). <br/>
16+
[@hwillson](https://github.com/hwillson) in [#2214](https://github.com/apollographql/react-apollo/pull/2214)
917

1018
## 2.1.9 (July 4, 2018)
1119

@@ -23,31 +31,31 @@
2331
## 2.1.7 (June 27, 2018)
2432

2533
- The `ApolloProvider` `children` prop type has been changed from `element`
26-
to `node`, to allow multiple children.
34+
to `node`, to allow multiple children.
2735
[@quentin-](https://github.com/quentin-) in [#1955](https://github.com/apollographql/react-apollo/pull/1955)
28-
- Properly support the new `getDerivedStateFromProps` lifecycle method.
36+
- Properly support the new `getDerivedStateFromProps` lifecycle method.
2937
[@amannn](https://github.com/amannn) in [#2076](https://github.com/apollographql/react-apollo/pull/2076)
30-
- `lodash` is no longer pinned to version 4.17.10.
38+
- `lodash` is no longer pinned to version 4.17.10.
3139
[@cherewaty](https://github.com/cherewaty) in [#1951](https://github.com/apollographql/react-apollo/pull/1951)
32-
- README updates to replace `apollo-client-preset` with `apollo-boost`.
40+
- README updates to replace `apollo-client-preset` with `apollo-boost`.
3341
[@JamesTheHacker](https://github.com/JamesTheHacker) in [#1925](https://github.com/apollographql/react-apollo/pull/1925)
34-
- README updates to fix broken links.
42+
- README updates to fix broken links.
3543
[@DennisKo](https://github.com/DennisKo) in [#1935](https://github.com/apollographql/react-apollo/pull/1935)
36-
- Project README has been updated to show a `<Query />` example.
44+
- Project README has been updated to show a `<Query />` example.
3745
[@petetnt](https://github.com/petetnt) in [#2102](https://github.com/apollographql/react-apollo/pull/2102)
3846

3947
## 2.1.6 (June 19, 2018)
4048

4149
- Adjust `getDataFromTree` to properly traverse React 16.3's context API
42-
provider/consumer approach.
50+
provider/consumer approach.
4351
[@marnusw](https://github.com/marnusw) in [#1978](https://github.com/apollographql/react-apollo/pull/1978)
4452
- An `ApolloClient` instance can now be passed into a `Mutation`
4553
component via a prop named `client`. This prop will override
4654
an `ApolloClient` instance set via `context`, by the `ApolloProvider`
47-
component.
55+
component.
4856
[@amneacsu](https://github.com/amneacsu) in [#1890](https://github.com/apollographql/react-apollo/pull/1890)
4957
- The `ApolloClient` instance used by a Mutation is now available in that
50-
Mutation's result.
58+
Mutation's result.
5159
[@cooperka](https://github.com/cooperka) in [#1945](https://github.com/apollographql/react-apollo/pull/1945)
5260

5361
## 2.1.5

0 commit comments

Comments
 (0)