about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2023-12-06 18:20:23 +0000
committerGitHub <noreply@github.com>2023-12-06 10:20:23 -0800
commit20a46c8cffd53869559c70b41e04ba1755bf560c (patch)
treec976c7e910f50607c5643c6e648cb7770155fd8a /src
parentde38595a7a04e3dfe67c5251472f1817152b8116 (diff)
downloadvoidsky-20a46c8cffd53869559c70b41e04ba1755bf560c.tar.zst
Enable structural sharing for preference query (#2113)
Diffstat (limited to 'src')
-rw-r--r--src/state/queries/preferences/index.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/state/queries/preferences/index.ts b/src/state/queries/preferences/index.ts
index afdec267d..620d56862 100644
--- a/src/state/queries/preferences/index.ts
+++ b/src/state/queries/preferences/index.ts
@@ -29,6 +29,7 @@ export const preferencesQueryKey = ['getPreferences']
 export function usePreferencesQuery() {
   return useQuery({
     staleTime: STALE.MINUTES.ONE,
+    structuralSharing: true,
     queryKey: preferencesQueryKey,
     queryFn: async () => {
       const agent = getAgent()