diff --git a/apps/meteor/client/lib/cachedStores/CachedStore.ts b/apps/meteor/client/lib/cachedStores/CachedStore.ts index 4e629f6ee4e8d..f57a14e58e2bd 100644 --- a/apps/meteor/client/lib/cachedStores/CachedStore.ts +++ b/apps/meteor/client/lib/cachedStores/CachedStore.ts @@ -310,8 +310,6 @@ export abstract class CachedStore implements await this.loadFromServerAndPopulate(); } - this.setReady(true); - this.reconnectionComputation?.stop(); let wentOffline = Tracker.nonreactive(() => Meteor.status().status === 'offline'); this.reconnectionComputation = Tracker.autorun(() => { @@ -340,9 +338,12 @@ export abstract class CachedStore implements return this.initializationPromise; } - this.initializationPromise = this.performInitialization().finally(() => { - this.initializationPromise = undefined; - }); + this.initializationPromise = this.performInitialization() + .catch(console.error) + .finally(() => { + this.initializationPromise = undefined; + this.setReady(true); + }); return this.initializationPromise; }