Skip to content

@yantrix/storage v0.6.0 • Docs


Yantrix API / @yantrix/storage / LocalStorageAdapter

Class: LocalStorageAdapter<SnapshotType> ​

Browser key-value persistence adapter with injectable serialization and backend.

saveConditionally() reads, checks, and writes the stored value synchronously. Web Storage provides no transaction across tabs.

Extends ​

  • AbstractAgnosticStorageAdapter<SnapshotType, this> & TStorageOperations<SnapshotType>

Type Parameters ​

• SnapshotType = unknown