nextPair
constnextPair: ({ seqNum, isClient, rebaseGeneration, }) =>CompositePair
Defined in: packages/@livestore/common/dist/schema/EventSequenceNumber/client.d.ts:130
Computes the next sequence number and its parent based on the current position.
For client-local events (isClient=true): increments the client component, keeps global. For global events (isClient=false): increments global, resets client to 0.
Parameters
Section titled “Parameters”{ seqNum, isClient, rebaseGeneration, }
Section titled “{ seqNum, isClient, rebaseGeneration, }”isClient
Section titled “isClient”boolean
rebaseGeneration?
Section titled “rebaseGeneration?”number