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

Function isHydratingNode

packages/core/src/render3/instructions/animation.ts:59–69  ·  view source on GitHub ↗
(lView: LView, tNode: TNode)

Source from the content-addressed store, hash-verified

57import {enableAnimationRuntimeSupport, enableViewDetachAnimationsSupport} from '../node_animations';
58
59function isHydratingNode(lView: LView, tNode: TNode): boolean {
60 if (isRootView(lView)) {
61 return getComponentLViewByIndex(tNode.index, lView)[HYDRATION] !== null;
62 }
63 const hydrationInfo = lView[HYDRATION];
64 return (
65 hydrationInfo !== null &&
66 (!isInSkipHydrationBlock() || isSkipHydrationRootTNode(tNode)) &&
67 !hydrationInfo.disconnectedNodes?.has(tNode.index - HEADER_OFFSET)
68 );
69}
70
71/**
72 * Instruction to handle the `animate.enter` behavior for class bindings.

Callers 2

ɵɵanimateEnterFunction · 0.85
ɵɵanimateEnterListenerFunction · 0.85

Calls 5

isRootViewFunction · 0.90
getComponentLViewByIndexFunction · 0.90
isInSkipHydrationBlockFunction · 0.90
isSkipHydrationRootTNodeFunction · 0.90
hasMethod · 0.65

Tested by

no test coverage detected