Skip to content

computeLiveDiff

computeLiveDiff(state, nextRows): Omit<LiveDiffPayload, "queryId">

Defined in: packages/client/src/worker/live-diff.ts:61

Diff a fresh ordered result set against the state’s previous set, MUTATING the state to the new set and returning the wire diff (§4). order is every key in the new ORDER BY order (keys only — cheap); added/ changed carry the delta row BODIES; removed carries dropped keys. Never emits the full result set: a single-row change yields one changed and the (key-only) order.

LiveDiffState

readonly Record<string, unknown>[]

Omit<LiveDiffPayload, "queryId">