Retree - v1.0.0
    Preparing search index...

    Function reconcileConvexDocuments

    • Create a reconciler for Convex document arrays using each document's _id.

      Type Parameters

      • TDoc extends { _id: PropertyKey }

      Returns IStateReconciler<TDoc[]>

      A reconciler that updates matching Convex documents in place.

      Use this for Convex document arrays when you want explicit reconciliation. ConvexQueryNode also tries Convex _id reconciliation by default for document arrays, but passing this reconciler makes the behavior clear at the call site.

      this.tasks = this.query(api.tasks.list, {
      args: { projectId },
      reconcile: reconcileConvexDocuments(),
      });