mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Revert "Revert "adressing comments for local_collection""
This reverts commit 2f056d9cf6.
This commit is contained in:
@@ -1651,11 +1651,8 @@ LocalCollection._observeFromObserveChanges = (cursor, observeCallbacks) => {
|
||||
{ nonMutatingCallbacks: true });
|
||||
|
||||
// If needed, re-enable callbacks as soon as the initial batch is ready.
|
||||
if (Meteor.isServer && suppressed) {
|
||||
handle.isReadyPromise.then(() => {
|
||||
suppressed = false;
|
||||
});
|
||||
} else suppressed = false;
|
||||
if (handle.isReady) suppressed = false;
|
||||
else handle.isReadyPromise.then(() => (suppressed = false));
|
||||
|
||||
return handle;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user