View as Markdown

API reference: @salmonui/data

resolveConflictsfunction

import { resolveConflicts } from '@salmonui/data';
function resolveConflicts<Row>(review: ConflictReview<Row>, options: ResolveConflictsOptions<Row>): WriteRequest<Row>;

Builds the follow-up write: rows where at least one cell is keepLocal are re-sent on top of the server row (other cells take the server value), with the server row as previous so its version is the expected version. Rows that are all useServer or defer are not sent.