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
Changes from 1 commit
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
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