From 6cc5ef66f76cd4a3fb1966cb1e9510ff23aa0237 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Fri, 21 Aug 2026 18:13:39 +0300 Subject: [PATCH] set maxAge on age assurance cache --- src/ageAssurance/data.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ageAssurance/data.tsx b/src/ageAssurance/data.tsx index 807e195a4d..369b9eedd7 100644 --- a/src/ageAssurance/data.tsx +++ b/src/ageAssurance/data.tsx @@ -57,6 +57,13 @@ const persister = createAsyncStoragePersister({ const [, cacheHydrationPromise] = persistQueryClient({ queryClient: qc, persister, + /* + * Device signals are local-only and cannot be recovered without prompting + * the user again, so they must survive the persister's default 24-hour + * expiration. Server-backed queries still use their own stale times and + * refetch normally after hydration. + */ + maxAge: Infinity, }) /*