(lView: LView, tNode: TNode)
| 520 | * @param tNode Node to be checked. |
| 521 | */ |
| 522 | export 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 |
no test coverage detected
searching dependent graphs…