Skip to content
module@warp-drive/experiments/storage @experimental

Interface ReactiveStorageOptions ​

Defined in: storage/storage.ts:7

Properties ​

fallbackToMemory? ​

ts
optional fallbackToMemory?: boolean;

Defined in: storage/storage.ts:12

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: storage/storage.ts:24

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: storage/storage.ts:18

If true, updates signal state even when writes fail due to quota. The onQuotaExceeded callback will be invoked before retrying.

Released under the MIT License.