checkFailedCollection() {
    // Give some time for animations. @todo - is this needed?
    setTimeout(() => {
      if (
        Articles.failedCollections.length > 0 &&
        xhrRetryCount < MAX_FAILED_COLLECTION_XHR_RETRY
      ) {
        xhrRetryCount++;
        let timeout = 10000;
        if (xhrRetryCount === 2) {
          timeout = 12000;
        }
        if (xhrRetryCount === 3) {
          timeout = 14000;
        }

        this.getFailedArticles(timeout);
      }
    }, 500);
  }
/**
   * Check if any collections failed to load due to time out.
   */
Check if any collections failed to load due to time out.
Check if any collections failed to load due to time out .
checkFailedCollection() {
    setTimeout(() => {
      if (
        Articles.failedCollections.length > 0 &&
        xhrRetryCount < MAX_FAILED_COLLECTION_XHR_RETRY
      ) {
        xhrRetryCount++;
        let timeout = 10000;
        if (xhrRetryCount === 2) {
          timeout = 12000;
        }
        if (xhrRetryCount === 3) {
          timeout = 14000;
        }
        this.getFailedArticles(timeout);
      }
    }, 500);
  }
checkFailedCollection ( ) { setTimeout ( ( ) => { if ( Articles . failedCollections . length > 0 && xhrRetryCount < MAX_FAILED_COLLECTION_XHR_RETRY ) { xhrRetryCount ++ ; let timeout = 10000 ; if ( xhrRetryCount === 2 ) { timeout = 12000 ; } if ( xhrRetryCount === 3 ) { timeout = 14000 ; } this . getFailedArticles ( timeout ) ; } } , 500 ) ; }
Check if any collections failed to load due to time out.
Check if any collections failed to load due to time out .
// Give some time for animations. @todo - is this needed?