Enable structural sharing for preference query (#2113)

zio/stable
dan 2023-12-06 18:20:23 +00:00 committed by GitHub
parent de38595a7a
commit 20a46c8cff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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()