tooot/src/helpers/queryClient.ts

6 lines
180 B
TypeScript
Raw Normal View History

import { QueryClient } from '@tanstack/react-query'
2021-05-12 15:40:55 +02:00
2022-12-10 00:42:45 +01:00
const queryClient = new QueryClient({ defaultOptions: { queries: { staleTime: 1000 * 60 * 5 } } })
2021-05-12 15:40:55 +02:00
export default queryClient