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

Function hydrateAttribute

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

Source from the content-addressed store, hash-verified

36849 }
36850 }
36851 function hydrateAttribute(
36852 domElement,
36853 propKey,
36854 attributeName,
36855 value,
36856 extraAttributes,
36857 serverDifferences
36858 ) {
36859 extraAttributes.delete(attributeName);
36860 domElement = domElement.getAttribute(attributeName);
36861 if (null === domElement)
36862 switch (typeof value) {
36863 case "undefined":
36864 case "function":
36865 case "symbol":
36866 case "boolean":
36867 return;
36868 }
36869 else if (null != value)
36870 switch (typeof value) {
36871 case "function":
36872 case "symbol":
36873 case "boolean":
36874 break;
36875 default:
36876 if (
36877 (checkAttributeStringCoercion(value, propKey),
36878 domElement === "" + value)
36879 )
36880 return;
36881 }
36882 warnForPropDifference(propKey, domElement, value, serverDifferences);
36883 }
36884 function hydrateBooleanAttribute(
36885 domElement,
36886 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…