MCPcopy Index your code
hub / github.com/caseywebdev/react-list / validatePropertiesInDevelopment

Function validatePropertiesInDevelopment

docs/index.js:35496–35525  ·  view source on GitHub ↗
(type, props)

Source from the content-addressed store, hash-verified

35494 dispatchQueue.push({ event: event, listeners: listeners });
35495 }
35496 function validatePropertiesInDevelopment(type, props) {
35497 validateProperties$2(type, props);
35498 ("input" !== type && "textarea" !== type && "select" !== type) ||
35499 null == props ||
35500 null !== props.value ||
35501 didWarnValueNull ||
35502 ((didWarnValueNull = !0),
35503 "select" === type && props.multiple
35504 ? console.error(
35505 "`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",
35506 type
35507 )
35508 : console.error(
35509 "`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",
35510 type
35511 ));
35512 var eventRegistry = {
35513 registrationNameDependencies: registrationNameDependencies,
35514 possibleRegistrationNames: possibleRegistrationNames
35515 };
35516 isCustomElement(type) ||
35517 "string" === typeof props.is ||
35518 warnUnknownProperties(type, props, eventRegistry);
35519 props.contentEditable &&
35520 !props.suppressContentEditableWarning &&
35521 null != props.children &&
35522 console.error(
35523 "A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."
35524 );
35525 }
35526 function warnForPropDifference(
35527 propName,
35528 serverValue,

Callers 3

setInitialPropertiesFunction · 0.85
updatePropertiesFunction · 0.85

Calls 3

validateProperties$2Function · 0.85
isCustomElementFunction · 0.85
warnUnknownPropertiesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…