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.
1 parent 0f94ed9 commit b340dd8Copy full SHA for b340dd8
packages/toolkit/src/query/retry.ts
@@ -23,7 +23,7 @@ async function defaultBackoff(attempt: number = 0, maxRetries: number = 5) {
23
)
24
}
25
26
-export 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