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

Function isInSkipHydrationBlock

packages/core/src/hydration/skip_hydration.ts:60–72  ·  view source on GitHub ↗
(tNode: TNode)

Source from the content-addressed store, hash-verified

58 * attribute.
59 */
60export function isInSkipHydrationBlock(tNode: TNode): boolean {
61 if (hasInSkipHydrationBlockFlag(tNode)) {
62 return true;
63 }
64 let currentTNode: TNode | null = tNode.parent;
65 while (currentTNode) {
66 if (hasInSkipHydrationBlockFlag(tNode) || hasSkipHydrationAttrOnTNode(currentTNode)) {
67 return true;
68 }
69 currentTNode = currentTNode.parent;
70 }
71 return false;
72}
73
74/**
75 * Check if an i18n block is in a skip hydration section by looking at a parent TNode

Callers 4

serializeLViewFunction · 0.90

Calls 2

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…