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

Function canHydrateNode

packages/core/src/hydration/utils.ts:522–531  ·  view source on GitHub ↗
(lView: LView, tNode: TNode)

Source from the content-addressed store, hash-verified

520 * @param tNode Node to be checked.
521 */
522export function canHydrateNode(lView: LView, tNode: TNode): boolean {
523 const hydrationInfo = lView[HYDRATION];
524
525 return (
526 hydrationInfo !== null &&
527 !isInSkipHydrationBlock() &&
528 !isDetachedByI18n(tNode) &&
529 !isDisconnectedNode(hydrationInfo, tNode.index - HEADER_OFFSET)
530 );
531}
532
533/**
534 * Helper function to prepare text nodes for serialization by ensuring

Calls 3

isInSkipHydrationBlockFunction · 0.90
isDetachedByI18nFunction · 0.90
isDisconnectedNodeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…