chore: org usage stale time (#30157)

This commit is contained in:
Kevin Grüneberg authored and GitHub committed 2024-10-29 06:09:49 +00:00
1 parent e1fb0cc719
commit 3974cf9fe3
1 file changed
+1
@@ -43,6 +43,7 @@ export const useOrgUsageQuery = <TData = OrgUsageData>(
({ signal }) => getOrgUsage({ orgSlug, projectRef, start, end }, signal),
{
enabled: enabled && typeof orgSlug !== 'undefined',
staleTime: 1000 * 60 * 30, // 30 mins, underlying usage data only refreshes once an hour, so safe to cache for a while
...options,
}
)