From ac83a825fbd404773e95d38b7ed56ea4010468e9 Mon Sep 17 00:00:00 2001 From: Leonardo Venturini Date: Tue, 30 Jul 2024 08:48:32 -0400 Subject: [PATCH] revert autorun change --- packages/accounts-base/accounts_client.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/packages/accounts-base/accounts_client.js b/packages/accounts-base/accounts_client.js index 8449c29d97..33073f2a6c 100644 --- a/packages/accounts-base/accounts_client.js +++ b/packages/accounts-base/accounts_client.js @@ -18,6 +18,9 @@ export class AccountsClient extends AccountsCommon { this._loggingIn = new ReactiveVar(false); this._loggingOut = new ReactiveVar(false); + this._loginServicesHandle = + this.connection.subscribe("meteor.loginServiceConfiguration"); + this._pageLoadLoginCallbacks = []; this._pageLoadLoginAttemptInfo = null; @@ -35,15 +38,6 @@ export class AccountsClient extends AccountsCommon { // This tracks whether callbacks registered with // Accounts.onLogin have been called this._loginCallbacksCalled = false; - - Tracker.autorun(() => { - // This means that the socket connection is established and not that the `connected` message has been received - // and the first `connect` message is triggered by `onopen` and then `onReset` - if (this.connection.status().connected) { - this._loginServicesHandle = - this.connection.subscribe("meteor.loginServiceConfiguration"); - } - }) } initStorageLocation(options) {