From 1c5c36fc12482803c2033c847475940f54cabc79 Mon Sep 17 00:00:00 2001 From: Fred KISSIE Date: Thu, 4 Dec 2025 22:50:04 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20set=20the=20`staleTime`=20?= =?UTF-8?q?to=20Zero=20for=20queries=20so=20that=20they=20are=20refetched?= =?UTF-8?q?=20everytime?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TanstackQueryProvider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/TanstackQueryProvider.tsx b/src/components/TanstackQueryProvider.tsx index b052ce96..9a6e7dd9 100644 --- a/src/components/TanstackQueryProvider.tsx +++ b/src/components/TanstackQueryProvider.tsx @@ -19,7 +19,7 @@ export function TanstackQueryProvider({ children }: ReactQueryProviderProps) { defaultOptions: { queries: { retry: 2, // retry twice by default - staleTime: durationToMs(5, "minutes"), + staleTime: 0, meta: { api }