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