(tNode: TNode)
| 58 | * attribute. |
| 59 | */ |
| 60 | export 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 |
no test coverage detected
searching dependent graphs…