MCPcopy Index your code
hub / github.com/plotly/dash / cloneElementWithValidation

Function cloneElementWithValidation

dash/deps/react@16.14.0.js:2037–2046  ·  view source on GitHub ↗
(element, props, children)

Source from the content-addressed store, hash-verified

2035 return validatedFactory;
2036 }
2037 function cloneElementWithValidation(element, props, children) {
2038 var newElement = cloneElement.apply(this, arguments);
2039
2040 for (var i = 2; i < arguments.length; i++) {
2041 validateChildKeys(arguments[i], newElement.type);
2042 }
2043
2044 validatePropTypes(newElement);
2045 return newElement;
2046 }
2047
2048 var enableSchedulerDebugging = false;
2049 var enableProfiling = true;

Callers

nothing calls this directly

Calls 3

validateChildKeysFunction · 0.70
validatePropTypesFunction · 0.70
applyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…