File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ const {
22
22
onMutate,
23
23
onSettled,
24
24
onSuccess,
25
+ retry,
26
+ retryDelay,
25
27
useErrorBoundary,
26
28
meta,
27
29
})
@@ -60,7 +62,8 @@ mutate(variables, {
60
62
- This function will fire when the mutation is either successfully fetched or encounters an error and be passed either the data or error
61
63
- If a promise is returned, it will be awaited and resolved before proceeding
62
64
- ` retry: boolean | number | (failureCount: number, error: TError) => boolean `
63
- - If ` false ` , failed mutations will not retry by default.
65
+ - Defaults to ` 0 ` .
66
+ - If ` false ` , failed mutations will not retry.
64
67
- If ` true ` , failed mutations will retry infinitely.
65
68
- If set to an ` number ` , e.g. ` 3 ` , failed mutations will retry until the failed mutations count meets that number.
66
69
- ` retryDelay: number | (retryAttempt: number, error: TError) => number `
You can’t perform that action at this time.
0 commit comments