Rxova
Skip to content

Persisted

What goes to disk. The version clocks travel with the values — that is the whole point: a reopened tab re-enters the last-writer-wins race with its real term instead of a fresh zero, so a restored value can legitimately beat, or legitimately lose to, whatever the live tabs are holding.

optional schema?: number;

The app’s state-shape version at the time of writing, from PersistOptions.version. Absent on anything written before versioning existed, which reads as 0.


state: Record<string, unknown>;

v: 1;

The envelope version — the shape of this record, owned by the library. Not to be confused with schema, which is the shape of your state and is owned by you.


versions: Record<string, Version>;