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

Function warnOnFunctionType

dash/deps/react-dom@18.3.1.js:13136–13148  ·  view source on GitHub ↗
(returnFiber)

Source from the content-addressed store, hash-verified

13134 }
13135
13136 function warnOnFunctionType(returnFiber) {
13137 {
13138 var componentName = getComponentNameFromFiber(returnFiber) || 'Component';
13139
13140 if (ownerHasFunctionTypeWarning[componentName]) {
13141 return;
13142 }
13143
13144 ownerHasFunctionTypeWarning[componentName] = true;
13145
13146 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.');
13147 }
13148 }
13149
13150 function resolveLazy(lazyType) {
13151 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…