Skip to content

Commit

Permalink
✨ Add stale time to useGetDashboardIcons query
Browse files Browse the repository at this point in the history
  • Loading branch information
ajnart committed May 15, 2023
1 parent 9f4f379 commit 599ccda
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hooks/icons/useGetDashboardIcons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});

0 comments on commit 599ccda

Please sign in to comment.