MCPcopy Create free account
hub / github.com/angular/angular / initDisconnectedNodes

Function initDisconnectedNodes

packages/core/src/hydration/utils.ts:495–502  ·  view source on GitHub ↗
(hydrationInfo: DehydratedView)

Source from the content-addressed store, hash-verified

493 * `DehydratedView`. Returns the initialized value.
494 */
495export 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

Callers 2

isDisconnectedNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected