(hydrationInfo: DehydratedView, index: number)
| 479 | * by calculating the sum of root nodes in all dehydrated views in this container. |
| 480 | */ |
| 481 | export function calcSerializedContainerSize(hydrationInfo: DehydratedView, index: number): number { |
| 482 | const views = getSerializedContainerViews(hydrationInfo, index) ?? []; |
| 483 | let numNodes = 0; |
| 484 | for (let view of views) { |
| 485 | numNodes += view[NUM_ROOT_NODES] * (view[MULTIPLIER] ?? 1); |
| 486 | } |
| 487 | return numNodes; |
| 488 | } |
| 489 | |
| 490 | /** |
| 491 | * Attempt to initialize the `disconnectedNodes` field of the given |
no test coverage detected
searching dependent graphs…