File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 4
4
5
5
- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
6
6
7
+ ## 5.27.6
8
+
9
+ - [ hub] fix: Don't invoke scope updates in scope listeners
10
+
7
11
## 5.27.5
8
12
9
13
- [ hub] fix: Sync ScopeListeners (#3065 )
Original file line number Diff line number Diff line change @@ -438,6 +438,9 @@ export class Scope implements ScopeInterface {
438
438
* This will be called on every set call.
439
439
*/
440
440
protected _notifyScopeListeners ( ) : void {
441
+ // We need this check for this._notifyingListeners to be able to work on scope during updates
442
+ // If this check is not here we'll produce endless recursion when something is done with the scope
443
+ // during the callback.
441
444
if ( ! this . _notifyingListeners ) {
442
445
this . _notifyingListeners = true ;
443
446
this . _scopeListeners . forEach ( callback => {
You can’t perform that action at this time.
0 commit comments