diff --git a/Changelog.md b/Changelog.md index fdf7fee2bf..c714dba71d 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,5 +1,13 @@ # Change log +## vNext + +### Bug Fixes + +- Fix `networkStatus` to reflect the loading state correctly for partial + refetching.
+ [@steelbrain](https://github.com/steelbrain) in [#2493](https://github.com/apollographql/react-apollo/pull/2493) + ## 2.2.4 (October 2, 2018) ### Bug Fixes diff --git a/src/Query.tsx b/src/Query.tsx index 64204b4cf8..790cf01529 100644 --- a/src/Query.tsx +++ b/src/Query.tsx @@ -419,7 +419,7 @@ export default class Query extends // the original `Query` component are expecting certain data values to // exist, and they're all of a sudden stripped away. To help avoid // this we'll attempt to refetch the `Query` data. - Object.assign(data, { loading: true }); + Object.assign(data, { loading: true, networkStatus: NetworkStatus.loading }); data.refetch(); return data; }