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

Function warnOnFunctionType

dash/deps/react-dom@18.2.0.js:14900–14912  ·  view source on GitHub ↗
(returnFiber)

Source from the content-addressed store, hash-verified

14898 }
14899
14900 function warnOnFunctionType(returnFiber) {
14901 {
14902 var componentName = getComponentNameFromFiber(returnFiber) || 'Component';
14903
14904 if (ownerHasFunctionTypeWarning[componentName]) {
14905 return;
14906 }
14907
14908 ownerHasFunctionTypeWarning[componentName] = true;
14909
14910 error('Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.');
14911 }
14912 }
14913
14914 function resolveLazy(lazyType) {
14915 var payload = lazyType._payload;

Callers 4

createChildFunction · 0.70
updateSlotFunction · 0.70
updateFromMapFunction · 0.70
reconcileChildFibersFunction · 0.70

Calls 2

errorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…