MCPcopy Index your code
hub / github.com/angular/angular / cleanupRemainingHydrationQueue

Function cleanupRemainingHydrationQueue

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

Source from the content-addressed store, hash-verified

537}
538
539function 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

Callers 1

Calls 3

getMethod · 0.65
cleanupMethod · 0.65
rejectMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…