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

Function countBlocksSkippedByHydration

packages/core/src/hydration/utils.ts:356–362  ·  view source on GitHub ↗
(injector: Injector)

Source from the content-addressed store, hash-verified

354}
355
356export function countBlocksSkippedByHydration(injector: Injector) {
357 const transferState = injector.get(TransferState);
358 const nghDeferData = transferState.get(NGH_DEFER_BLOCKS_KEY, {});
359 if (ngDevMode) {
360 ngDevMode.deferBlocksWithIncrementalHydration = Object.keys(nghDeferData).length;
361 }
362}
363
364export function markRNodeAsHavingHydrationMismatch(
365 node: RNode,

Callers 1

withDomHydrationFunction · 0.90

Calls 2

getMethod · 0.65
keysMethod · 0.65

Tested by

no test coverage detected