1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00
This commit is contained in:
xmflsct
2023-01-06 01:08:27 +01:00
parent c83a74d1c3
commit bd3046cc2f
2 changed files with 5 additions and 9 deletions

View File

@ -5,7 +5,7 @@ export const queryClient = new QueryClient({
queries: {
staleTime: 1000 * 60 * 5,
retry: (failureCount, error: any) => {
if (error?.status === 404) {
if ([401, 404].includes(error?.status)) {
return false
}
if (failureCount <= 3) {