Home / Function/ getStorage() — supabase Function Reference

getStorage() — supabase Function Reference

Architecture documentation for the getStorage() function in storage.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  275f9b5e_5537_ea85_2ca4_96cc97bb5ca5["getStorage()"]
  ca41c6ce_bd13_d922_2fa9_239ebb371db9["store()"]
  ca41c6ce_bd13_d922_2fa9_239ebb371db9 -->|calls| 275f9b5e_5537_ea85_2ca4_96cc97bb5ca5
  49a28a62_f6e4_17bb_f52c_25d99b997a0f["retrieve()"]
  49a28a62_f6e4_17bb_f52c_25d99b997a0f -->|calls| 275f9b5e_5537_ea85_2ca4_96cc97bb5ca5
  e5a57147_0055_6664_ef17_d8f12365e6c6["remove()"]
  e5a57147_0055_6664_ef17_d8f12365e6c6 -->|calls| 275f9b5e_5537_ea85_2ca4_96cc97bb5ca5
  style 275f9b5e_5537_ea85_2ca4_96cc97bb5ca5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/docs/lib/storage.ts lines 6–8

function getStorage(storageType: StorageType) {
  return storageType === 'local' ? window.localStorage : window.sessionStorage
}

Subdomains

Frequently Asked Questions

What does getStorage() do?
getStorage() is a function in the supabase codebase.
What calls getStorage()?
getStorage() is called by 3 function(s): remove, retrieve, store.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free