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

Function checkAttributeStringCoercion

docs/index.js:19481–19491  ·  view source on GitHub ↗
(value, attributeName)

Source from the content-addressed store, hash-verified

19479 return "" + value;
19480 }
19481 function checkAttributeStringCoercion(value, attributeName) {
19482 if (willCoercionThrow(value))
19483 return (
19484 console.error(
19485 "The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",
19486 attributeName,
19487 typeName(value)
19488 ),
19489 testStringCoercion(value)
19490 );
19491 }
19492 function checkCSSPropertyStringCoercion(value, propName) {
19493 if (willCoercionThrow(value))
19494 return (

Callers 15

setValueForAttributeFunction · 0.85
updateInputFunction · 0.85
initInputFunction · 0.85
restoreStateOfTargetFunction · 0.85
coerceFormActionPropFunction · 0.85
setPropFunction · 0.85
hydrateAttributeFunction · 0.85

Calls 3

willCoercionThrowFunction · 0.85
typeNameFunction · 0.85
testStringCoercionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…