MCPcopy Create free account
hub / github.com/caseywebdev/react-list / describeHydratableInstanceForDevWarnings

Function describeHydratableInstanceForDevWarnings

docs/index.js:37941–37962  ·  view source on GitHub ↗
(instance)

Source from the content-addressed store, hash-verified

37939 return node;
37940 }
37941 function describeHydratableInstanceForDevWarnings(instance) {
37942 if (1 === instance.nodeType) {
37943 for (
37944 var JSCompiler_temp_const = instance.nodeName.toLowerCase(),
37945 serverDifferences = {},
37946 attributes = instance.attributes,
37947 i = 0;
37948 i < attributes.length;
37949 i++
37950 ) {
37951 var attr = attributes[i];
37952 serverDifferences[getPropNameFromAttributeName(attr.name)] =
37953 "style" === attr.name.toLowerCase()
37954 ? getStylesObjectFromElement(instance)
37955 : attr.value;
37956 }
37957 return { type: JSCompiler_temp_const, props: serverDifferences };
37958 }
37959 return 8 === instance.nodeType
37960 ? { type: "Suspense", props: {} }
37961 : instance.nodeValue;
37962 }
37963 function diffHydratedTextForDevWarnings(textInstance, text, parentProps) {
37964 return null === parentProps ||
37965 !0 !== parentProps[SUPPRESS_HYDRATION_WARNING]

Callers 2

warnNonHydratedInstanceFunction · 0.85
popHydrationStateFunction · 0.85

Calls 2

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…