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

Function isDisconnectedNode

packages/core/src/hydration/utils.ts:508–515  ·  view source on GitHub ↗
(hydrationInfo: DehydratedView, index: number)

Source from the content-addressed store, hash-verified

506 * such nodes and instead, use a regular "creation mode".
507 */
508export function isDisconnectedNode(hydrationInfo: DehydratedView, index: number): boolean {
509 // Check if we are processing disconnected info for the first time.
510 if (typeof hydrationInfo.disconnectedNodes === 'undefined') {
511 const nodeIds = hydrationInfo.data[DISCONNECTED_NODES];
512 hydrationInfo.disconnectedNodes = nodeIds ? new Set(nodeIds) : null;
513 }
514 return !!initDisconnectedNodes(hydrationInfo)?.has(index);
515}
516
517/**
518 * Checks whether a node can be hydrated.

Callers 4

locateOrCreateNodeImplFunction · 0.90
canHydrateNodeFunction · 0.70

Calls 2

initDisconnectedNodesFunction · 0.85
hasMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…