Skip to content

nextPair

const nextPair: ({ 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.

boolean

number

Composite

CompositePair