Function: orSetAdd()
Function: orSetAdd()
Section titled “Function: orSetAdd()”orSetAdd<
T>(clientID,seq,value,current?):OrSet<T>
Defined in: core/src/schema/crdt.ts:220
Local add. seq is a monotonic per-clientID counter that the caller
supplies (Alpha dogfood needed this: without a stable seq, retries
would generate different tags and merge weirdly). mutationID from
MutatorOrigin is the natural source.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”clientID
Section titled “clientID”string
number
T
current?
Section titled “current?”OrSet<T> | null
Returns
Section titled “Returns”OrSet<T>