mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
chore: org usage stale time (#30157)
This commit is contained in:
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,
|
||||
}
|
||||
)
|
||||
Reference in new issue
Block a user