Expose retryable option

This commit is contained in:
igoroctaviano committed 2021-06-03 17:24:39 -03:00
1 parent 98fcabfcb5
commit d575e36879
1 file changed
+3
@@ -94,6 +94,9 @@ export const getXHRRetryRequestHook = (options = {}) => {
if ('randomize' in options) {
retryOptions.randomize = options.randomize;
}
if ('retryableStatusCodes' in options) {
retryOptions.retryableStatusCodes = options.retryableStatusCodes;
}
return xhrRetryRequestHook;
};