Skip to content

Commit 8054837

Browse files
authored
fix: Sync ScopeListeners (#3065)
1 parent 2de6948 commit 8054837

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/hub/src/scope.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -440,12 +440,10 @@ export class Scope implements ScopeInterface {
440440
protected _notifyScopeListeners(): void {
441441
if (!this._notifyingListeners) {
442442
this._notifyingListeners = true;
443-
setTimeout(() => {
444-
this._scopeListeners.forEach(callback => {
445-
callback(this);
446-
});
447-
this._notifyingListeners = false;
443+
this._scopeListeners.forEach(callback => {
444+
callback(this);
448445
});
446+
this._notifyingListeners = false;
449447
}
450448
}
451449

0 commit comments

Comments
 (0)