MCPcopy Index your code
hub / github.com/angular/angular / initDisconnectedNodes

Function initDisconnectedNodes

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

Source from the content-addressed store, hash-verified

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

Callers 2

isDisconnectedNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…