1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Experiment support of Pleroma (#588)

This commit is contained in:
xmflsct
2022-12-20 00:45:53 +01:00
committed by GitHub
parent 29a092a925
commit ca629befc9
7 changed files with 36 additions and 4 deletions

View File

@ -1,5 +1,21 @@
import { QueryClient } from '@tanstack/react-query'
const queryClient = new QueryClient({ defaultOptions: { queries: { staleTime: 1000 * 60 * 5 } } })
const queryClient = new QueryClient({
defaultOptions: {
queries: {
staleTime: 1000 * 60 * 5,
retry: (failureCount, error: any) => {
if (error?.status === 404) {
return false
}
if (failureCount <= 3) {
return true
} else {
return false
}
}
}
}
})
export default queryClient