MCPcopy Create free account
hub / github.com/angular/angular / cleanupRemainingHydrationQueue

Function cleanupRemainingHydrationQueue

packages/core/src/defer/triggering.ts:558–567  ·  view source on GitHub ↗
(
  hydrationQueue: string[],
  dehydratedBlockRegistry: DehydratedBlockRegistry,
)

Source from the content-addressed store, hash-verified

556}
557
558function 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

Callers 1

Calls 3

getMethod · 0.65
cleanupMethod · 0.65
rejectMethod · 0.45

Tested by

no test coverage detected