mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-11 16:05:47 +01:00
⚡️ Icon selector performance changes
Added caching for the icons
This commit is contained in:
@@ -10,5 +10,7 @@ export const useGetDashboardIcons = () =>
|
|||||||
return data as NormalizedIconRepositoryResult[];
|
return data as NormalizedIconRepositoryResult[];
|
||||||
},
|
},
|
||||||
refetchOnMount: false,
|
refetchOnMount: false,
|
||||||
|
// Cache for infinity, refetch every so often.
|
||||||
|
cacheTime: Infinity,
|
||||||
refetchOnWindowFocus: false,
|
refetchOnWindowFocus: false,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user