@@ -18,7 +18,7 @@ import type {
1818} from './ReactFiberSuspenseComponent' ;
1919import type { SuspenseContext } from './ReactFiberSuspenseContext' ;
2020
21- import checkPropTypes from 'prop-types /checkPropTypes' ;
21+ import checkPropTypes from 'shared /checkPropTypes' ;
2222
2323import {
2424 IndeterminateComponent ,
@@ -75,7 +75,6 @@ import {refineResolvedLazyComponent} from 'shared/ReactLazyComponent';
7575import { REACT_LAZY_TYPE , getIteratorFn } from 'shared/ReactSymbols' ;
7676import {
7777 getCurrentFiberOwnerNameInDevOrNull ,
78- getCurrentFiberStackInDev ,
7978 setIsRendering ,
8079} from './ReactCurrentFiber' ;
8180import { startWorkTimer , cancelWorkTimer } from './ReactDebugFiberPerf' ;
@@ -296,7 +295,6 @@ function updateForwardRef(
296295 nextProps , // Resolved props
297296 'prop' ,
298297 getComponentName ( Component ) ,
299- getCurrentFiberStackInDev ,
300298 ) ;
301299 }
302300 }
@@ -414,7 +412,6 @@ function updateMemoComponent(
414412 nextProps , // Resolved props
415413 'prop' ,
416414 getComponentName ( type ) ,
417- getCurrentFiberStackInDev ,
418415 ) ;
419416 }
420417 }
@@ -442,7 +439,6 @@ function updateMemoComponent(
442439 nextProps , // Resolved props
443440 'prop' ,
444441 getComponentName ( type ) ,
445- getCurrentFiberStackInDev ,
446442 ) ;
447443 }
448444 }
@@ -501,7 +497,6 @@ function updateSimpleMemoComponent(
501497 nextProps , // Resolved (SimpleMemoComponent has no defaultProps)
502498 'prop' ,
503499 getComponentName ( outerMemoType ) ,
504- getCurrentFiberStackInDev ,
505500 ) ;
506501 }
507502 // Inner propTypes will be validated in the function component path.
@@ -626,7 +621,6 @@ function updateFunctionComponent(
626621 nextProps , // Resolved props
627622 'prop' ,
628623 getComponentName ( Component ) ,
629- getCurrentFiberStackInDev ,
630624 ) ;
631625 }
632626 }
@@ -793,7 +787,6 @@ function updateClassComponent(
793787 nextProps , // Resolved props
794788 'prop' ,
795789 getComponentName ( Component ) ,
796- getCurrentFiberStackInDev ,
797790 ) ;
798791 }
799792 }
@@ -1198,7 +1191,6 @@ function mountLazyComponent(
11981191 resolvedProps , // Resolved for outer only
11991192 'prop' ,
12001193 getComponentName ( Component ) ,
1201- getCurrentFiberStackInDev ,
12021194 ) ;
12031195 }
12041196 }
@@ -2622,13 +2614,7 @@ function updateContextProvider(
26222614 const providerPropTypes = workInProgress . type . propTypes ;
26232615
26242616 if ( providerPropTypes ) {
2625- checkPropTypes (
2626- providerPropTypes ,
2627- newProps ,
2628- 'prop' ,
2629- 'Context.Provider' ,
2630- getCurrentFiberStackInDev ,
2631- ) ;
2617+ checkPropTypes ( providerPropTypes , newProps , 'prop' , 'Context.Provider' ) ;
26322618 }
26332619 }
26342620
@@ -3208,7 +3194,6 @@ function beginWork(
32083194 resolvedProps , // Resolved for outer only
32093195 'prop' ,
32103196 getComponentName ( type ) ,
3211- getCurrentFiberStackInDev ,
32123197 ) ;
32133198 }
32143199 }
0 commit comments