Skip to content

Commit

Permalink
Disable RQ structural sharing (#2022)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored Nov 29, 2023
1 parent 6f7032d commit 9fb2c29
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/react-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
},
})

0 comments on commit 9fb2c29

Please sign in to comment.