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

Function invalidSkipHydrationHost

packages/core/src/hydration/error_handling.ts:225–234  ·  view source on GitHub ↗
(rNode: RNode)

Source from the content-addressed store, hash-verified

223 * @returns an error
224 */
225export function invalidSkipHydrationHost(rNode: RNode): Error {
226 const header =
227 'The `ngSkipHydration` flag is applied on a node ' +
228 "that doesn't act as a component host. Hydration can be " +
229 'skipped only on per-component basis.\n\n';
230 const actual = `${describeDomFromNode(rNode)}\n\n`;
231 const footer = 'Please move the `ngSkipHydration` attribute to the component host element.\n\n';
232 const message = header + actual + footer;
233 return new RuntimeError(RuntimeErrorCode.INVALID_SKIP_HYDRATION_HOST, message);
234}
235
236// Stringification methods
237

Callers 1

Calls 1

describeDomFromNodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…