Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

queryClient.ts

10 lines204 Bytes

1import { QueryClient } from '@tanstack/react-query'
2​
3export const queryClient = new QueryClient({
4 defaultOptions: {
5 queries: {
6 staleTime: 1000 * 60, // 1 minute
7 retry: 3,
8 },
9 },
10})