( hydrationQueue: string[], dehydratedBlockRegistry: DehydratedBlockRegistry, )
| 537 | } |
| 538 | |
| 539 | function cleanupRemainingHydrationQueue( |
| 540 | hydrationQueue: string[], |
| 541 | dehydratedBlockRegistry: DehydratedBlockRegistry, |
| 542 | ) { |
| 543 | const blocksBeingHydrated = dehydratedBlockRegistry.hydrating; |
| 544 | for (const dehydratedBlockId in hydrationQueue) { |
| 545 | blocksBeingHydrated.get(dehydratedBlockId)?.reject(); |
| 546 | } |
| 547 | dehydratedBlockRegistry.cleanup(hydrationQueue); |
| 548 | } |
| 549 | |
| 550 | /** |
| 551 | * Generates a new promise for every defer block in the hydrating queue |
no test coverage detected
searching dependent graphs…