MCPcopy
hub / github.com/angular/angular / setSegmentHead

Function setSegmentHead

packages/core/src/hydration/utils.ts:395–402  ·  view source on GitHub ↗
(
  hydrationInfo: DehydratedView,
  index: number,
  node: RNode | null,
)

Source from the content-addressed store, hash-verified

393}
394
395export function setSegmentHead(
396 hydrationInfo: DehydratedView,
397 index: number,
398 node: RNode | null,
399): void {
400 hydrationInfo.segmentHeads ??= {};
401 hydrationInfo.segmentHeads[index] = node;
402}
403
404export function getSegmentHead(hydrationInfo: DehydratedView, index: number): RNode | null {
405 return hydrationInfo.segmentHeads?.[index] ?? null;

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…