From 9fb2c29c672f6be07410ae1ca4d7e47b6c98f914 Mon Sep 17 00:00:00 2001 From: dan Date: Wed, 29 Nov 2023 04:48:08 +0000 Subject: [PATCH] Disable RQ structural sharing (#2022) --- src/lib/react-query.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/react-query.ts b/src/lib/react-query.ts index 6b425d3b..9886e87b 100644 --- a/src/lib/react-query.ts +++ b/src/lib/react-query.ts @@ -8,6 +8,10 @@ export const queryClient = new QueryClient({ // so we NEVER want to enable this // -prf refetchOnWindowFocus: false, + // Structural sharing between responses makes it impossible to rely on + // "first seen" timestamps on objects to determine if they're fresh. + // Disable this optimization so that we can rely on "first seen" timestamps. + structuralSharing: false, }, }, })