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