ts
import { ReactiveStorageOptions } from '@trail-run/core/reactive/storage';Interface: ReactiveStorageOptions
Defined in: src/reactive/storage.ts:5
Properties
fallbackToMemory?
ts
optional fallbackToMemory: boolean;Defined in: src/reactive/storage.ts:10
If true, falls back to in-memory storage when the underlying storage is unavailable (e.g., private browsing mode).
onQuotaExceeded()?
ts
optional onQuotaExceeded: (key, value) =>
| boolean
| Promise<boolean>;Defined in: src/reactive/storage.ts:22
Called when a write fails due to quota exceeded. Return true to retry the write after freeing space.
Parameters
key
string
value
string
Returns
| boolean | Promise<boolean>
updateOnQuotaExceeded?
ts
optional updateOnQuotaExceeded: boolean;Defined in: src/reactive/storage.ts:16
If true, updates tracked state even when writes fail due to quota. The onQuotaExceeded callback will be invoked before retrying.