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

Patch networkStatus along with loading attribute #2493

Merged
merged 2 commits into from
Oct 24, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Change log

## vNext

### Bug Fixes

- Fix `networkStatus` to reflect the loading state correctly for partial
refetching. <br/>
[@steelbrain](https://github.com/steelbrain) in [#2493](https://github.com/apollographql/react-apollo/pull/2493)

## 2.2.4 (October 2, 2018)

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion src/Query.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ export default class Query<TData = any, TVariables = OperationVariables> 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;
}
Expand Down