Skip to content

Commit

Permalink
Make loading consistent with networkStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonpaulos committed Aug 2, 2019
1 parent 55dc16b commit 485ba41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/apollo-client/src/core/ObservableQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,8 @@ export class ObservableQuery<
this.updateLastResult({
...this.lastResult,
errors: error.graphQLErrors,
networkStatus: NetworkStatus.error
networkStatus: NetworkStatus.error,
loading: false,
});
iterateObserversSafely(this.observers, 'error', this.lastError = error);
};
Expand Down

0 comments on commit 485ba41

Please sign in to comment.