MCPcopy Create free account
hub / github.com/angular/angular / isInSkipHydrationBlock

Function isInSkipHydrationBlock

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

Source from the content-addressed store, hash-verified

62 * attribute.
63 */
64export function isInSkipHydrationBlock(tNode: TNode): boolean {
65 if (hasInSkipHydrationBlockFlag(tNode)) {
66 return true;
67 }
68 let currentTNode: TNode | null = tNode.parent;
69 while (currentTNode) {
70 if (hasInSkipHydrationBlockFlag(tNode) || hasSkipHydrationAttrOnTNode(currentTNode)) {
71 return true;
72 }
73 currentTNode = currentTNode.parent;
74 }
75 return false;
76}
77
78/**
79 * 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