(hydrationInfo: DehydratedView)
| 493 | * `DehydratedView`. Returns the initialized value. |
| 494 | */ |
| 495 | export function initDisconnectedNodes(hydrationInfo: DehydratedView): Set<number> | null { |
| 496 | // Check if we are processing disconnected info for the first time. |
| 497 | if (typeof hydrationInfo.disconnectedNodes === 'undefined') { |
| 498 | const nodeIds = hydrationInfo.data[DISCONNECTED_NODES]; |
| 499 | hydrationInfo.disconnectedNodes = nodeIds ? new Set(nodeIds) : null; |
| 500 | } |
| 501 | return hydrationInfo.disconnectedNodes; |
| 502 | } |
| 503 | |
| 504 | /** |
| 505 | * Checks whether a node is annotated as "disconnected", i.e. not present |
no outgoing calls
no test coverage detected