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

Function patchHydrationInfo

packages/core/src/hydration/utils.ts:318–320  ·  view source on GitHub ↗
(node: RNode, info: HydrationInfo)

Source from the content-addressed store, hash-verified

316} & Element;
317
318function patchHydrationInfo(node: RNode, info: HydrationInfo) {
319 (node as HydratedNode)[HYDRATION_INFO_KEY] = info;
320}
321
322export function readHydrationInfo(node: RNode): HydrationInfo | null {
323 return (node as HydratedNode)[HYDRATION_INFO_KEY] ?? null;

Calls

no outgoing calls

Tested by

no test coverage detected