refactor refetch and stale time

This commit is contained in:
Kevin Puig
2025-09-28 10:47:29 -04:00
parent ac5f6ed680
commit 8fcc775c66
4 changed files with 11 additions and 11 deletions

View File

@@ -8,7 +8,7 @@ export const API_BASE_URL =
export const queryClient = new QueryClient({
defaultOptions: {
queries: {
staleTime: 1000 * 60, // 1 minute
staleTime: 500 * 1, // 1 minute
refetchOnWindowFocus: true,
retry: (failureCount, error: any) => {
// Don't retry on auth errors