Skip to content

Function: crdtLwwRegister()

crdtLwwRegister<T>(): Column<T, true, true>

Defined in: core/src/schema/columns.ts:341

LWW-Register: last-writer-wins register with (timestamp, clientID) tiebreak. The stored value is { value: T, ts: number, clientID: string }; read via lwwRead(register, fallback); write via lwwSet(clientID, value, Date.now(), current).

Suitable for fields like “current status label” or “assignee” where concurrent edits should resolve to a single winner rather than merge like a counter would.

T

Column<T, true, true>