MCPcopy
hub / github.com/angular/angular / verifyNodeWasHydrated

Function verifyNodeWasHydrated

packages/platform-server/test/hydration_utils.ts:136–140  ·  view source on GitHub ↗
(el: HTMLElement)

Source from the content-addressed store, hash-verified

134}
135
136export function verifyNodeWasHydrated(el: HTMLElement) {
137 if (readHydrationInfo(el)?.status !== HydrationStatus.Hydrated) {
138 fail('Hydration error: the node is *not* hydrated: ' + el.outerHTML);
139 }
140}
141
142export function verifyNodeWasNotHydrated(el: HTMLElement) {
143 if (readHydrationInfo(el)?.status === HydrationStatus.Hydrated) {

Callers 1

Calls 1

readHydrationInfoFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…