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

Function getHydrationErrorFooter

packages/core/src/hydration/error_handling.ts:425–435  ·  view source on GitHub ↗

* Builds the footer hydration error message * * @param componentClassName the name of the component class * @returns string

(componentClassName?: string)

Source from the content-addressed store, hash-verified

423 * @returns string
424 */
425function getHydrationErrorFooter(componentClassName?: string): string {
426 const componentInfo = componentClassName ? `the "${componentClassName}"` : 'corresponding';
427 return (
428 `To fix this problem:\n` +
429 ` * check ${componentInfo} component for hydration-related issues\n` +
430 ` * check to see if your template has valid HTML structure\n` +
431 ` * check if there are any third-party scripts that manipulate the DOM. More info: ${DOC_PAGE_BASE_URL}${THIRD_PARTY_SCRIPTS_URL}\n` +
432 ` * or skip hydration by adding the \`ngSkipHydration\` attribute ` +
433 `to its host node in a template\n\n`
434 );
435}
436
437/**
438 * Checks if a given RNode is likely to have been added by a third-party script

Callers 5

validateMatchingNodeFunction · 0.85
validateNodeExistsFunction · 0.85
nodeNotFoundErrorFunction · 0.85
nodeNotFoundAtPathErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…