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

Commit

Permalink
Merge pull request #2214 from apollographql/hwillson/await-refetch-qu…
Browse files Browse the repository at this point in the history
…eries

Add `awaitRefetchQueries` changes from recent `apollo-client` release
  • Loading branch information
hwillson authored Jul 25, 2018
2 parents 2f8a340 + 2879767 commit 2788981
Show file tree
Hide file tree
Showing 5 changed files with 1,958 additions and 1,956 deletions.
28 changes: 18 additions & 10 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,16 @@

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

## 2.1.9 (July 4, 2018)

Expand All @@ -23,31 +31,31 @@
## 2.1.7 (June 27, 2018)

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

## 2.1.6 (June 19, 2018)

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

## 2.1.5
Expand Down
Loading

0 comments on commit 2788981

Please sign in to comment.