The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Add comment for refactor
Joshen Lim4e416a5f926c
diff --git a/studio/stores/common/PostgresMetaInterface.ts b/studio/stores/common/PostgresMetaInterface.tsindex f2be74940b7..3314521b081 100644--- a/studio/stores/common/PostgresMetaInterface.ts+++ b/studio/stores/common/PostgresMetaInterface.ts@@ -23,6 +23,12 @@ export interface IPostgresMetaInterface<T> {byId: (id: number | string) => T | undefinedinitialDataArray: (value: T[]) => void}++// [TODO] Need to refactor the logic for 'isInitialized'+// Should avoid page level "loaded" state like TableEditorLayout+// The logic should be - state should be INITIAL at first, and only+// taken as initialized after the first trigger of the load method.+// https://github.com/supabase/supabase/pull/5128#pullrequestreview-860706726export default class PostgresMetaInterface<T> implements IPostgresMetaInterface<T> {STATES = {INITIAL: 'initial',