* Checks if a row has pending optimistic mutations (not yet confirmed by sync). * Used to compute the $synced virtual property.
(key: TKey)
| 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. |
no test coverage detected