File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -103,8 +103,8 @@ export class View {
103
103
* Computes the initial set of document changes based on the provided
104
104
* documents.
105
105
*
106
- * Unlike `computeDocChanges`, documents that already have committed mutation
107
- * don't raise `hasPendingWrites`. This distinction allows us to only raise
106
+ * Unlike `computeDocChanges`, documents with committed mutations don't raise
107
+ * `hasPendingWrites`. This distinction allows us to only raise
108
108
* `hasPendingWrite` events for documents that changed during the lifetime of
109
109
* the View.
110
110
*
@@ -294,9 +294,9 @@ export class View {
294
294
} ;
295
295
}
296
296
297
- private shouldWaitForRemoteVersion ( oldDoc , newDoc ) {
297
+ private shouldWaitForRemoteVersion ( oldDoc , newDoc ) : boolean {
298
298
// We suppress the initial change event for documents that were
299
- // modified as part of write acknowledgment (e.g. when the value of
299
+ // modified as part of a write acknowledgment (e.g. when the value of
300
300
// a server transform is applied) as Watch will send us the same
301
301
// document again.
302
302
// By suppressing the event, we only raise two user visible events
Original file line number Diff line number Diff line change @@ -496,7 +496,7 @@ export class LocalStore {
496
496
'Ignoring outdated watch update for ' ,
497
497
key ,
498
498
'. Current version:' ,
499
- existingDoc ! . version ,
499
+ existingDoc . version ,
500
500
' Watch version:' ,
501
501
doc . version
502
502
) ;
You can’t perform that action at this time.
0 commit comments