️ Icon selector performance changes

Added caching for the icons
This commit is contained in:
ajnart
2023-03-03 12:39:40 +09:00
parent 85120e3816
commit 68cea4b6a8

View File

@@ -10,5 +10,7 @@ export const useGetDashboardIcons = () =>
return data as NormalizedIconRepositoryResult[];
},
refetchOnMount: false,
// Cache for infinity, refetch every so often.
cacheTime: Infinity,
refetchOnWindowFocus: false,
});