We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
shouldRetry
1 parent e05b101 commit 9ef6a73Copy full SHA for 9ef6a73
2 files changed
index.d.ts
@@ -71,6 +71,8 @@ export type Options = {
71
/**
72
Decide if a retry should occur based on the context. Returning true triggers a retry, false aborts with the error.
73
74
+ It is only called if `retries` and `maxRetryTime` have not been exhuasted.
75
+
76
It is not called for `TypeError` (except network errors) and `AbortError`.
77
78
@example
readme.md
@@ -103,6 +103,8 @@ Type: `Function`
103
104
105
106
+It is only called if `retries` and `maxRetryTime` have not been exhuasted.
107
108
109
110
```js
0 commit comments