MCPcopy
hub / github.com/react/react / throwOnInvalidObjectType

Function throwOnInvalidObjectType

packages/react-reconciler/src/ReactChildFiber.js:322–331  ·  view source on GitHub ↗
(returnFiber: Fiber, newChild: Object)

Source from the content-addressed store, hash-verified

320}
321
322function throwOnInvalidObjectType(returnFiber: Fiber, newChild: Object) {
323 const debugTask = getCurrentDebugTask();
324 if (__DEV__ && debugTask !== null) {
325 debugTask.run(
326 throwOnInvalidObjectTypeImpl.bind(null, returnFiber, newChild),
327 );
328 } else {
329 throwOnInvalidObjectTypeImpl(returnFiber, newChild);
330 }
331}
332
333function warnOnFunctionTypeImpl(returnFiber: Fiber, invalidChild: Function) {
334 if (__DEV__) {

Callers 4

createChildFunction · 0.85
updateSlotFunction · 0.85
updateFromMapFunction · 0.85
reconcileChildFibersImplFunction · 0.85

Calls 3

getCurrentDebugTaskFunction · 0.85
runMethod · 0.80

Tested by

no test coverage detected