Sync / foldkit-sync/remote

Reconciled

interface · packages/sync/src/remote.ts:62

interface Reconciled<AppModel, Edit> {
  readonly model: AppModel
  readonly held: ReadonlyArray<Edit>
  readonly replaced: ReadonlyArray<Edit>
}

What reconcile did besides the Model.

Members

Reconciled.model

property · packages/sync/src/remote.ts:63

readonly model: AppModel

Reconciled.held

property · packages/sync/src/remote.ts:69

readonly held: ReadonlyArray<Edit>

Edits the journal absorbed that a cached row has not been read since. The row is out of date until it is: ask for it again, unless a live stream brings it.

Reconciled.replaced

property · packages/sync/src/remote.ts:75

readonly replaced: ReadonlyArray<Edit>

replica's own edits a read of their row reached with another value: the table applies in commit order, so a later edit replaced them. The slice may say whose later, or may not yet; this is the row saying it.