Sync / foldkit-sync/journal

TableAheadOfJournalError

class · packages/sync/src/journal.ts:272

class TableAheadOfJournalError extends Schema.TaggedError<TableAheadOfJournalError>()(
  'SyncTableAheadOfJournalError',
  { table: Schema.Number, journal: Schema.Number },
) {}

The table holds revisions past every sequence the journal has: it outlived a reset of the journal, or was built from another. New edits commit at sequences the table already passed, so apply would skip every one and the replicas count each absorbed: rebuild the table with the journal.

In the guides

Members

TableAheadOfJournalError.message

property · packages/sync/src/journal.ts:276

message: string