Skip to content

Commit

Permalink
Adding to polling states
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Mar 29, 2017
1 parent 4f59abf commit 6f68ddb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class QueryAutoRefresh extends React.PureComponent {
const { queries } = this.props;
const queryKeys = Object.keys(queries);
const queriesAsArray = queryKeys.map(key => queries[key]);
return queriesAsArray.some(q => ['running', 'started', 'pending'].indexOf(q.state) >= 0);
return queriesAsArray.some(q => ['running', 'started', 'pending', 'fetching'].indexOf(q.state) >= 0);
}
startTimer() {
if (!(this.timer)) {
Expand Down

0 comments on commit 6f68ddb

Please sign in to comment.