Add stale time to useGetDashboardIcons query

This commit is contained in:
ajnart
2023-05-15 16:24:22 +09:00
parent 9f4f3794b0
commit 599ccda1ed

View File

@@ -12,5 +12,6 @@ export const useGetDashboardIcons = () =>
refetchOnMount: false,
// Cache for infinity, refetch every so often.
cacheTime: Infinity,
staleTime: 1000 * 60 * 5, // 5 minutes
refetchOnWindowFocus: false,
});