Enable structural sharing for preference query (#2113)
parent
de38595a7a
commit
20a46c8cff
|
@ -29,6 +29,7 @@ export const preferencesQueryKey = ['getPreferences']
|
||||||
export function usePreferencesQuery() {
|
export function usePreferencesQuery() {
|
||||||
return useQuery({
|
return useQuery({
|
||||||
staleTime: STALE.MINUTES.ONE,
|
staleTime: STALE.MINUTES.ONE,
|
||||||
|
structuralSharing: true,
|
||||||
queryKey: preferencesQueryKey,
|
queryKey: preferencesQueryKey,
|
||||||
queryFn: async () => {
|
queryFn: async () => {
|
||||||
const agent = getAgent()
|
const agent = getAgent()
|
||||||
|
|
Loading…
Reference in New Issue