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