Storage.defaultStorage
Returns the default storage for the current environment as a singleton.
- Browser:
sessionStorage - Server/unsupported: in-memory
Map-based storage
Returns the same instance on every call so that the zone transport and actions share the same storage without explicit plumbing.
Usage
import { } from 'viem/tempo'
const = .()
await .('key', 'value')
const = await .('key')
'value'Return Value
type ReturnType = StorageA singleton Storage instance for the current environment.