Revert "Revert "adressing comments for local_collection""

This reverts commit 2f056d9cf6.
This commit is contained in:
Gabriel Grubba
2023-03-27 18:05:43 -03:00
parent 2f056d9cf6
commit 363d9ef97c

View File

@@ -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;
};