From d901672013be3d527f7ad67cf7a44cede9d74f76 Mon Sep 17 00:00:00 2001 From: Daniel Griesser Date: Fri, 20 Nov 2020 14:25:37 +0100 Subject: [PATCH] fix: Sync ScopeListeners --- packages/hub/src/scope.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/hub/src/scope.ts b/packages/hub/src/scope.ts index 8b4505e46339..0f391d9f7383 100644 --- a/packages/hub/src/scope.ts +++ b/packages/hub/src/scope.ts @@ -440,12 +440,10 @@ export class Scope implements ScopeInterface { protected _notifyScopeListeners(): void { if (!this._notifyingListeners) { this._notifyingListeners = true; - setTimeout(() => { - this._scopeListeners.forEach(callback => { - callback(this); - }); - this._notifyingListeners = false; + this._scopeListeners.forEach(callback => { + callback(this); }); + this._notifyingListeners = false; } }