Build, Test, and Push CFDM Docker Image / test (push) Failing after 3h13m2s
Build, Test, and Push CFDM Docker Image / create-release (push) Has been cancelled
Build, Test, and Push CFDM Docker Image / build-and-push (push) Has been cancelled
Build, Test, and Push CFDM Docker Image / update-wiki (push) Has been cancelled
15 lines
359 B
TypeScript
15 lines
359 B
TypeScript
import { QueryClient } from '@tanstack/react-query'
|
|
import { ApiError } from './api-client'
|
|
|
|
export const queryClient = new QueryClient({
|
|
defaultOptions: {
|
|
queries: {
|
|
staleTime: 1000 * 60,
|
|
retry: (count, error) => {
|
|
if (error instanceof ApiError && error.status === 404) return false
|
|
return count < 2
|
|
},
|
|
},
|
|
},
|
|
})
|