MCPcopy Create free account
hub / github.com/plotly/dash / cloneElementWithValidation

Function cloneElementWithValidation

dash/deps/react@18.2.0.js:2402–2411  ·  view source on GitHub ↗
(element, props, children)

Source from the content-addressed store, hash-verified

2400 return validatedFactory;
2401 }
2402 function cloneElementWithValidation(element, props, children) {
2403 var newElement = cloneElement.apply(this, arguments);
2404
2405 for (var i = 2; i < arguments.length; i++) {
2406 validateChildKeys(arguments[i], newElement.type);
2407 }
2408
2409 validatePropTypes(newElement);
2410 return newElement;
2411 }
2412
2413 var enableSchedulerDebugging = false;
2414 var enableProfiling = false;

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…