The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: improve memoization of getDiskAttributes (#34287)
Tom Gallacher0cb2a9e27f5c
diff --git a/apps/studio/components/interfaces/DiskManagement/DiskManagementForm.tsx b/apps/studio/components/interfaces/DiskManagement/DiskManagementForm.tsxindex 38279d2eef3..1de204394bd 100644--- a/apps/studio/components/interfaces/DiskManagement/DiskManagementForm.tsx+++ b/apps/studio/components/interfaces/DiskManagement/DiskManagementForm.tsx@@ -209,6 +209,7 @@ export function DiskManagementForm() {useUpdateDiskAttributesMutation({// this is to suppress to toast messageonError: () => {},+ onSuccess: () => setRefetchInterval(2000),})const { mutateAsync: updateSubscriptionAddon, isLoading: isUpdatingCompute } =useProjectAddonUpdateMutation({diff --git a/apps/studio/data/config/disk-attributes-query.ts b/apps/studio/data/config/disk-attributes-query.tsindex fec1924ca07..1e964bcb374 100644--- a/apps/studio/data/config/disk-attributes-query.ts+++ b/apps/studio/data/config/disk-attributes-query.ts@@ -62,7 +62,7 @@ export const useRemainingDurationForDiskAttributeUpdate = ({return lastModifiedAtString === undefined || COOLDOWN_DURATION - secondsFromNow < 0? 0: COOLDOWN_DURATION - secondsFromNow- }, [lastModifiedAtString])+ }, [lastModifiedAtString, secondsFromNow])if (data?.last_modified_at === undefined)return {