loadTableEditorStateFromLocalStorage() — supabase Function Reference
Architecture documentation for the loadTableEditorStateFromLocalStorage() function in SupabaseGrid.utils.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD a20580c3_30b6_e168_8d41_39e761a3cb4b["loadTableEditorStateFromLocalStorage()"] ad421b8e_07b7_b683_750b_0a14c16256b9["buildTableEditorUrl()"] ad421b8e_07b7_b683_750b_0a14c16256b9 -->|calls| a20580c3_30b6_e168_8d41_39e761a3cb4b f4cb8468_b194_5418_4741_5f9595551abb["getStorageKey()"] a20580c3_30b6_e168_8d41_39e761a3cb4b -->|calls| f4cb8468_b194_5418_4741_5f9595551abb style a20580c3_30b6_e168_8d41_39e761a3cb4b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/studio/components/grid/SupabaseGrid.utils.ts lines 136–146
export function loadTableEditorStateFromLocalStorage(
projectRef: string,
tableId: number
): SavedState | undefined {
const storageKey = getStorageKey(STORAGE_KEY_PREFIX, projectRef)
// Prefer sessionStorage (scoped to current tab) over localStorage
const jsonStr = sessionStorage.getItem(storageKey) ?? localStorage.getItem(storageKey)
if (!jsonStr) return
const json = JSON.parse(jsonStr)
return json[tableId]
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does loadTableEditorStateFromLocalStorage() do?
loadTableEditorStateFromLocalStorage() is a function in the supabase codebase.
What does loadTableEditorStateFromLocalStorage() call?
loadTableEditorStateFromLocalStorage() calls 1 function(s): getStorageKey.
What calls loadTableEditorStateFromLocalStorage()?
loadTableEditorStateFromLocalStorage() is called by 1 function(s): buildTableEditorUrl.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free