API reference · generated from source
Function: tryReconcileDocumentsById()#
function tryReconcileDocumentsById(current, next): boolean;Defined in: retree-query/src/internals/reconcile.ts:25
Reconcile an incoming document array into the current state when both sides
are arrays of documents with _id keys (the Convex document convention).
Parameters#
| Parameter | Type |
|---|---|
current | unknown |
next | unknown |
Returns#
boolean
Remarks#
Returns false without touching current when either side is not a
document array, so callers can fall back to wholesale replacement.