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

Function markRNodeAsSkippedByHydration

packages/core/src/hydration/utils.ts:344–353  ·  view source on GitHub ↗
(node: RNode)

Source from the content-addressed store, hash-verified

342}
343
344export function markRNodeAsSkippedByHydration(node: RNode) {
345 if (!ngDevMode) {
346 throw new Error(
347 'Calling `markRNodeAsSkippedByHydration` in prod mode ' +
348 'is not supported and likely a mistake.',
349 );
350 }
351 patchHydrationInfo(node, {status: HydrationStatus.Skipped});
352 ngDevMode.componentsSkippedHydration++;
353}
354
355export function countBlocksSkippedByHydration(injector: Injector) {
356 const transferState = injector.get(TransferState);

Callers 1

Calls 1

patchHydrationInfoFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…