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
1 changed files with 5 additions and 1 deletions

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,