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

Function hydrateBooleanishAttribute

docs/index.js:36911–36941  ·  view source on GitHub ↗
(
      domElement,
      propKey,
      attributeName,
      value,
      extraAttributes,
      serverDifferences
    )

Source from the content-addressed store, hash-verified

36909 warnForPropDifference(propKey, domElement, value, serverDifferences);
36910 }
36911 function hydrateBooleanishAttribute(
36912 domElement,
36913 propKey,
36914 attributeName,
36915 value,
36916 extraAttributes,
36917 serverDifferences
36918 ) {
36919 extraAttributes.delete(attributeName);
36920 domElement = domElement.getAttribute(attributeName);
36921 if (null === domElement)
36922 switch (typeof value) {
36923 case "undefined":
36924 case "function":
36925 case "symbol":
36926 return;
36927 }
36928 else if (null != value)
36929 switch (typeof value) {
36930 case "function":
36931 case "symbol":
36932 break;
36933 default:
36934 if (
36935 (checkAttributeStringCoercion(value, attributeName),
36936 domElement === "" + value)
36937 )
36938 return;
36939 }
36940 warnForPropDifference(propKey, domElement, value, serverDifferences);
36941 }
36942 function hydrateNumericAttribute(
36943 domElement,
36944 propKey,

Callers 1

diffHydratedPropertiesFunction · 0.85

Calls 2

warnForPropDifferenceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…