mirror of
https://github.com/tooot-app/app
synced 2025-01-29 17:59:16 +01:00
No need to retry if confirmed not found
This commit is contained in:
parent
b1f00ce99b
commit
a236adfb57
@ -35,7 +35,11 @@ const pushUseConnect = () => {
|
|||||||
}),
|
}),
|
||||||
{
|
{
|
||||||
enabled: false,
|
enabled: false,
|
||||||
retry: 10,
|
retry: (failureCount, error) => {
|
||||||
|
if (error.status == 404) return false
|
||||||
|
|
||||||
|
return failureCount < 10
|
||||||
|
},
|
||||||
retryOnMount: false,
|
retryOnMount: false,
|
||||||
refetchOnMount: false,
|
refetchOnMount: false,
|
||||||
refetchOnWindowFocus: false,
|
refetchOnWindowFocus: false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user