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

Function printHydrationStats

packages/core/src/hydration/api.ts:128–140  ·  view source on GitHub ↗

* Outputs a message with hydration stats into a console.

(injector: Injector)

Source from the content-addressed store, hash-verified

126 * Outputs a message with hydration stats into a console.
127 */
128function printHydrationStats(injector: Injector) {
129 const console = injector.get(Console);
130 const message =
131 `Angular hydrated ${ngDevMode!.hydratedComponents} component(s) ` +
132 `and ${ngDevMode!.hydratedNodes} node(s), ` +
133 `${ngDevMode!.componentsSkippedHydration} component(s) were skipped. ` +
134 (isIncrementalHydrationEnabled(injector)
135 ? `${ngDevMode!.deferBlocksWithIncrementalHydration} defer block(s) were configured to use incremental hydration. `
136 : '') +
137 `Learn more at ${DOC_PAGE_BASE_URL}/guide/hydration.`;
138 // tslint:disable-next-line:no-console
139 console.log(message);
140}
141
142/**
143 * Returns a Promise that is resolved when an application becomes stable.

Callers 1

withDomHydrationFunction · 0.85

Calls 3

getMethod · 0.65
logMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…