( hydrationQueue: string[], dehydratedBlockRegistry: DehydratedBlockRegistry, )
| 556 | } |
| 557 | |
| 558 | function cleanupRemainingHydrationQueue( |
| 559 | hydrationQueue: string[], |
| 560 | dehydratedBlockRegistry: DehydratedBlockRegistry, |
| 561 | ) { |
| 562 | const blocksBeingHydrated = dehydratedBlockRegistry.hydrating; |
| 563 | for (const dehydratedBlockId of hydrationQueue) { |
| 564 | blocksBeingHydrated.get(dehydratedBlockId)?.reject(); |
| 565 | } |
| 566 | dehydratedBlockRegistry.cleanup(hydrationQueue); |
| 567 | } |
| 568 | |
| 569 | /** |
| 570 | * Generates a new promise for every defer block in the hydrating queue |
no test coverage detected