MCPcopy Index your code
hub / github.com/react/react / warnOnFunctionType

Function warnOnFunctionType

packages/react-reconciler/src/ReactChildFiber.js:370–377  ·  view source on GitHub ↗
(returnFiber: Fiber, invalidChild: Function)

Source from the content-addressed store, hash-verified

368}
369
370function warnOnFunctionType(returnFiber: Fiber, invalidChild: Function) {
371 const debugTask = getCurrentDebugTask();
372 if (__DEV__ && debugTask !== null) {
373 debugTask.run(warnOnFunctionTypeImpl.bind(null, returnFiber, invalidChild));
374 } else {
375 warnOnFunctionTypeImpl(returnFiber, invalidChild);
376 }
377}
378
379function warnOnSymbolTypeImpl(returnFiber: Fiber, invalidChild: symbol) {
380 if (__DEV__) {

Callers 4

createChildFunction · 0.70
updateSlotFunction · 0.70
updateFromMapFunction · 0.70
reconcileChildFibersImplFunction · 0.70

Calls 3

getCurrentDebugTaskFunction · 0.85
warnOnFunctionTypeImplFunction · 0.85
runMethod · 0.80

Tested by

no test coverage detected