MCPcopy Create free account
hub / github.com/TanStack/db / isRowSynced

Method isRowSynced

packages/db/src/collection/state.ts:160–165  ·  view source on GitHub ↗

* Checks if a row has pending optimistic mutations (not yet confirmed by sync). * Used to compute the $synced virtual property.

(key: TKey)

Source from the content-addressed store, hash-verified

158 * Used to compute the $synced virtual property.
159 */
160 public isRowSynced(key: TKey): boolean {
161 if (this.isLocalOnly) {
162 return true
163 }
164 return !this.optimisticUpserts.has(key) && !this.optimisticDeletes.has(key)
165 }
166
167 /**
168 * Gets the origin of the last confirmed change to a row.

Callers 1

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected