Disable RQ structural sharing (#2022)

zio/stable
dan 2023-11-29 04:48:08 +00:00 committed by GitHub
parent 6f7032d42b
commit 9fb2c29c67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,10 @@ export const queryClient = new QueryClient({
// so we NEVER want to enable this // so we NEVER want to enable this
// -prf // -prf
refetchOnWindowFocus: false, 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,
}, },
}, },
}) })