1
0
mirror of https://github.com/tooot-app/app synced 2025-01-14 10:25:47 +01:00

No need to retry if confirmed not found

This commit is contained in:
xmflsct 2022-12-18 11:00:33 +01:00
parent b1f00ce99b
commit a236adfb57

View File

@ -35,7 +35,11 @@ const pushUseConnect = () => {
}),
{
enabled: false,
retry: 10,
retry: (failureCount, error) => {
if (error.status == 404) return false
return failureCount < 10
},
retryOnMount: false,
refetchOnMount: false,
refetchOnWindowFocus: false,