The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: cache time usage / do not preload invoice breakdown (#39278)
Kevin Grüneberg92ce7fb4e153
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/BillingSettings.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/BillingSettings.tsxindex 884b39bee9e..bcb1c3f0f0b 100644--- a/apps/studio/components/interfaces/Organization/BillingSettings/BillingSettings.tsx+++ b/apps/studio/components/interfaces/Organization/BillingSettings/BillingSettings.tsx@@ -57,7 +57,7 @@ export const BillingSettings = () => {<ScaffoldDivider />- {org?.plan.id !== 'free' && (+ {org && org.plan.id !== 'free' && (<ScaffoldContainer id="breakdown"><BillingBreakdown /></ScaffoldContainer>diff --git a/apps/studio/data/usage/org-usage-query.ts b/apps/studio/data/usage/org-usage-query.tsindex 9b6f4ae4344..4110c6660c2 100644--- a/apps/studio/data/usage/org-usage-query.ts+++ b/apps/studio/data/usage/org-usage-query.ts@@ -44,7 +44,7 @@ export const useOrgUsageQuery = <TData = OrgUsageData>(({ signal }) => getOrgUsage({ orgSlug, projectRef, start, end }, signal),{enabled: enabled && IS_PLATFORM && typeof orgSlug !== 'undefined',- staleTime: 1000 * 60 * 30, // 30 mins, underlying usage data only refreshes once an hour, so safe to cache for a while+ staleTime: 1000 * 60 * 60, // 60 mins, underlying usage data only refreshes once an hour, so safe to cache for a while...options,})