@continuum-js/std / loadPersisted
Function: loadPersisted()
loadPersisted<
T>(key,fallback,storage?):T
Defined in: index.ts:224
Read a persisted value back, or fallback when the key is missing, the JSON is corrupted, or storage is unavailable (SSR) — loading state must never be the reason an app fails to start.
Type Parameters
T
T
Parameters
key
string
fallback
T
storage?
StorageLike | undefined
Returns
T