mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(core): incorrect loop in defer blocks
Fixes that we were running a `for in` loop on an array and silently doing the wrong thing. Fixes #70113.
This commit is contained in:
committed by
Alon Mishne
parent
107f6fa49d
commit
565dbb2fe5
@@ -541,7 +541,7 @@ function cleanupRemainingHydrationQueue(
|
||||
dehydratedBlockRegistry: DehydratedBlockRegistry,
|
||||
) {
|
||||
const blocksBeingHydrated = dehydratedBlockRegistry.hydrating;
|
||||
for (const dehydratedBlockId in hydrationQueue) {
|
||||
for (const dehydratedBlockId of hydrationQueue) {
|
||||
blocksBeingHydrated.get(dehydratedBlockId)?.reject();
|
||||
}
|
||||
dehydratedBlockRegistry.cleanup(hydrationQueue);
|
||||
|
||||
Reference in New Issue
Block a user