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.
RetryOptions
retry.ts
1 parent 4441eef commit bee3f8aCopy full SHA for bee3f8a
packages/toolkit/src/query/retry.ts
@@ -23,7 +23,7 @@ async function defaultBackoff(attempt: number = 0, maxRetries: number = 5) {
23
)
24
}
25
26
-interface StaggerOptions {
+export interface RetryOptions {
27
/**
28
* How many times the query will be retried (default: 5)
29
*/
@@ -42,8 +42,8 @@ function fail(e: any): never {
42
43
const retryWithBackoff: BaseQueryEnhancer<
44
unknown,
45
- StaggerOptions,
46
- StaggerOptions | void
+ RetryOptions,
+ RetryOptions | void
47
> = (baseQuery, defaultOptions) => async (args, api, extraOptions) => {
48
const options = {
49
maxRetries: 5,
0 commit comments