Expose retryable option
This commit is contained in:
parent
98fcabfcb5
commit
d575e36879
@ -94,6 +94,9 @@ export const getXHRRetryRequestHook = (options = {}) => {
|
|||||||
if ('randomize' in options) {
|
if ('randomize' in options) {
|
||||||
retryOptions.randomize = options.randomize;
|
retryOptions.randomize = options.randomize;
|
||||||
}
|
}
|
||||||
|
if ('retryableStatusCodes' in options) {
|
||||||
|
retryOptions.retryableStatusCodes = options.retryableStatusCodes;
|
||||||
|
}
|
||||||
return xhrRetryRequestHook;
|
return xhrRetryRequestHook;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user