(hydrationInfo: DehydratedView, index: number)
| 507 | * such nodes and instead, use a regular "creation mode". |
| 508 | */ |
| 509 | export function isDisconnectedNode(hydrationInfo: DehydratedView, index: number): boolean { |
| 510 | // Check if we are processing disconnected info for the first time. |
| 511 | if (typeof hydrationInfo.disconnectedNodes === 'undefined') { |
| 512 | const nodeIds = hydrationInfo.data[DISCONNECTED_NODES]; |
| 513 | hydrationInfo.disconnectedNodes = nodeIds ? new Set(nodeIds) : null; |
| 514 | } |
| 515 | return !!initDisconnectedNodes(hydrationInfo)?.has(index); |
| 516 | } |
| 517 | |
| 518 | /** |
| 519 | * Checks whether a node can be hydrated. |
no test coverage detected