store() — supabase Function Reference
Architecture documentation for the store() function in storage.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD ca41c6ce_bd13_d922_2fa9_239ebb371db9["store()"] d2b86cf8_33ab_11da_bb80_d1beedac361c["storeOrRemoveNull()"] d2b86cf8_33ab_11da_bb80_d1beedac361c -->|calls| ca41c6ce_bd13_d922_2fa9_239ebb371db9 275f9b5e_5537_ea85_2ca4_96cc97bb5ca5["getStorage()"] ca41c6ce_bd13_d922_2fa9_239ebb371db9 -->|calls| 275f9b5e_5537_ea85_2ca4_96cc97bb5ca5 style ca41c6ce_bd13_d922_2fa9_239ebb371db9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/lib/storage.ts lines 10–19
export function store(storageType: StorageType, key: LocalStorageKey, value: string) {
if (typeof window === 'undefined') return
const storage = getStorage(storageType)
try {
storage.setItem(key as string, value)
} catch {
console.error(`Failed to set storage item with key "${key}"`)
}
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does store() do?
store() is a function in the supabase codebase.
What does store() call?
store() calls 1 function(s): getStorage.
What calls store()?
store() is called by 1 function(s): storeOrRemoveNull.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free