www/category-category-module-es5.js
/**
     * Calls the passed in fetch wrapper and returns the response.
     * If the returned response has a status of 5xx, re-runs the function once and
     * returns the response.
     */
Calls the passed in fetch wrapper and returns the response.
If the returned response has a status of 5xx, re-runs the function once and
returns the response.
Calls the passed in fetch wrapper and returns the response . If the returned response has a status of 5xx re - runs the function once and returns the response .
function retryIfServerError(fn) {
      return Object(tslib__WEBPACK_IMPORTED_MODULE_2__["__awaiter"])(this, void 0, void 0, function () {
        var result;
        return Object(tslib__WEBPACK_IMPORTED_MODULE_2__["__generator"])(this, function (_a) {
          switch (_a.label) {
            case 0:
              return [4
              , fn()];
            case 1:
              result = _a.sent();
              if (result.status >= 500 && result.status < 600) {
                return [2
                , fn()];
              }
              return [2
              , result];
          }
        });
      });
    }
function retryIfServerError ( fn ) { return Object ( tslib__WEBPACK_IMPORTED_MODULE_2__ [ "__awaiter" ] ) ( this , void 0 , void 0 , function ( ) { var result ; return Object ( tslib__WEBPACK_IMPORTED_MODULE_2__ [ "__generator" ] ) ( this , function ( _a ) { switch ( _a . label ) { case 0 : return [ 4 , fn ( ) ] ; case 1 : result = _a . sent ( ) ; if ( result . status >= 500 && result . status < 600 ) { return [ 2 , fn ( ) ] ; } return [ 2 , result ] ; } } ) ; } ) ; }
Calls the passed in fetch wrapper and returns the response.
Calls the passed in fetch wrapper and returns the response .
/*yield*/ // Internal Server Error. Retry request. /*return*/ /*return*/