storeOrRemoveNull() — supabase Function Reference
Architecture documentation for the storeOrRemoveNull() function in storage.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD d2b86cf8_33ab_11da_bb80_d1beedac361c["storeOrRemoveNull()"] 51623c80_273c_e768_f820_db1e275afe84["projectsStore.setSelectedOrgProject()"] 51623c80_273c_e768_f820_db1e275afe84 -->|calls| d2b86cf8_33ab_11da_bb80_d1beedac361c 1f96bfaf_0ad7_0816_ca62_0a3441d4f70b["projectsStore.setSelectedBranch()"] 1f96bfaf_0ad7_0816_ca62_0a3441d4f70b -->|calls| d2b86cf8_33ab_11da_bb80_d1beedac361c e5a57147_0055_6664_ef17_d8f12365e6c6["remove()"] d2b86cf8_33ab_11da_bb80_d1beedac361c -->|calls| e5a57147_0055_6664_ef17_d8f12365e6c6 ca41c6ce_bd13_d922_2fa9_239ebb371db9["store()"] d2b86cf8_33ab_11da_bb80_d1beedac361c -->|calls| ca41c6ce_bd13_d922_2fa9_239ebb371db9 style d2b86cf8_33ab_11da_bb80_d1beedac361c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/lib/storage.ts lines 33–44
export function storeOrRemoveNull(
storageType: StorageType,
key: LocalStorageKey,
value: string | null | undefined
) {
if (typeof window === 'undefined') return
if (value === null || value === undefined) {
remove(storageType, key)
} else {
store(storageType, key, value)
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does storeOrRemoveNull() do?
storeOrRemoveNull() is a function in the supabase codebase.
What does storeOrRemoveNull() call?
storeOrRemoveNull() calls 2 function(s): remove, store.
What calls storeOrRemoveNull()?
storeOrRemoveNull() is called by 2 function(s): projectsStore.setSelectedBranch, projectsStore.setSelectedOrgProject.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free