MCPcopy Create free account
hub / github.com/TanStack/db / hasTxids

Function hasTxids

packages/electric-db-collection/src/electric.ts:373–377  ·  view source on GitHub ↗
(
  message: Message<T>,
)

Source from the content-addressed store, hash-verified

371
372// Check if a message contains txids in its headers
373function hasTxids<T extends Row<unknown>>(
374 message: Message<T>,
375): message is Message<T> & { headers: { txids?: Array<Txid> } } {
376 return `txids` in message.headers && Array.isArray(message.headers.txids)
377}
378
379/**
380 * Creates a deduplicated loadSubset handler for progressive/on-demand modes

Callers 1

createElectricSyncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected