La referencia de la API está disponible solo en inglés por ahora.

PersistOptions

interface
persistence/persist.ts:30

Shared configuration.

Properties

NameTypeDescription
adapterPersistenceAdapter
keystringStorage key.
migrate?(persisted: unknown, from: number) => null | Record<string, unknown>Upgrades a payload written by an older version.
onError?(error: unknown, phase: PersistencePhase) => voidCalled on any failure.
slices?readonly string[]Slices to persist. Every slice by default.
throttleMs?numberCoalescing window for writes, in milliseconds. Defaults to 250.
versionnumberSchema version of what is written.