Files
Jellify/constants/query-client.ts
2025-02-14 19:41:20 -06:00

10 lines
334 B
TypeScript

import { QueryClient } from "@tanstack/react-query";
export const queryClient = new QueryClient({
defaultOptions: {
queries: {
gcTime: (1000 * 60 * 60 * 24) * 5, // 5 days, for maximum cache-age
staleTime: (1000 * 60 * 30), // 30 minutes, this can be refreshed manually anyways
}
}
});