MCPcopy Index your code
hub / github.com/tastejs/todomvc / warnOnFunctionType

Function warnOnFunctionType

examples/typescript-react/js/bundle.js:13921–13930  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13919}
13920
13921function warnOnFunctionType() {
13922 var currentComponentErrorInfo = '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.' + getCurrentFiberStackInDev();
13923
13924 if (ownerHasFunctionTypeWarning[currentComponentErrorInfo]) {
13925 return;
13926 }
13927 ownerHasFunctionTypeWarning[currentComponentErrorInfo] = true;
13928
13929 warning$1(false, '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.');
13930}
13931
13932// This wrapper function exists because I expect to clone the code in each path
13933// to be able to optimize each path individually by branching early. This needs

Callers 4

createChildFunction · 0.85
updateSlotFunction · 0.85
updateFromMapFunction · 0.85
reconcileChildFibersFunction · 0.85

Calls 1

Tested by

no test coverage detected