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

Function cleanupHydratedDeferBlocks

packages/core/src/hydration/cleanup.ts:153–164  ·  view source on GitHub ↗
(
  deferBlock: DehydratedDeferBlock | null,
  hydratedBlocks: string[],
  registry: DehydratedBlockRegistry,
  appRef: ApplicationRef,
)

Source from the content-addressed store, hash-verified

151 * dehydrated views and containers
152 */
153export function cleanupHydratedDeferBlocks(
154 deferBlock: DehydratedDeferBlock | null,
155 hydratedBlocks: string[],
156 registry: DehydratedBlockRegistry,
157 appRef: ApplicationRef,
158): void {
159 if (deferBlock !== null) {
160 registry.cleanup(hydratedBlocks);
161 cleanupLContainer(deferBlock.lContainer);
162 cleanupDehydratedViews(appRef);
163 }
164}

Callers 1

Calls 3

cleanupLContainerFunction · 0.85
cleanupDehydratedViewsFunction · 0.85
cleanupMethod · 0.65

Tested by

no test coverage detected