@@ -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 ,
@@ -76,7 +76,6 @@ import {REACT_LAZY_TYPE, getIteratorFn} from 'shared/ReactSymbols';
7676import {
7777 setCurrentPhase ,
7878 getCurrentFiberOwnerNameInDevOrNull ,
79- getCurrentFiberStackInDev ,
8079} from './ReactCurrentFiber' ;
8180import { startWorkTimer , cancelWorkTimer } from './ReactDebugFiberPerf' ;
8281import {
@@ -298,7 +297,6 @@ function updateForwardRef(
298297 nextProps , // Resolved props
299298 'prop' ,
300299 getComponentName ( Component ) ,
301- getCurrentFiberStackInDev ,
302300 ) ;
303301 }
304302 }
@@ -416,7 +414,6 @@ function updateMemoComponent(
416414 nextProps , // Resolved props
417415 'prop' ,
418416 getComponentName ( type ) ,
419- getCurrentFiberStackInDev ,
420417 ) ;
421418 }
422419 }
@@ -444,7 +441,6 @@ function updateMemoComponent(
444441 nextProps , // Resolved props
445442 'prop' ,
446443 getComponentName ( type ) ,
447- getCurrentFiberStackInDev ,
448444 ) ;
449445 }
450446 }
@@ -503,7 +499,6 @@ function updateSimpleMemoComponent(
503499 nextProps , // Resolved (SimpleMemoComponent has no defaultProps)
504500 'prop' ,
505501 getComponentName ( outerMemoType ) ,
506- getCurrentFiberStackInDev ,
507502 ) ;
508503 }
509504 // Inner propTypes will be validated in the function component path.
@@ -628,7 +623,6 @@ function updateFunctionComponent(
628623 nextProps , // Resolved props
629624 'prop' ,
630625 getComponentName ( Component ) ,
631- getCurrentFiberStackInDev ,
632626 ) ;
633627 }
634628 }
@@ -795,7 +789,6 @@ function updateClassComponent(
795789 nextProps , // Resolved props
796790 'prop' ,
797791 getComponentName ( Component ) ,
798- getCurrentFiberStackInDev ,
799792 ) ;
800793 }
801794 }
@@ -1200,7 +1193,6 @@ function mountLazyComponent(
12001193 resolvedProps , // Resolved for outer only
12011194 'prop' ,
12021195 getComponentName ( Component ) ,
1203- getCurrentFiberStackInDev ,
12041196 ) ;
12051197 }
12061198 }
@@ -2636,13 +2628,7 @@ function updateContextProvider(
26362628 const providerPropTypes = workInProgress . type . propTypes ;
26372629
26382630 if ( providerPropTypes ) {
2639- checkPropTypes (
2640- providerPropTypes ,
2641- newProps ,
2642- 'prop' ,
2643- 'Context.Provider' ,
2644- getCurrentFiberStackInDev ,
2645- ) ;
2631+ checkPropTypes ( providerPropTypes , newProps , 'prop' , 'Context.Provider' ) ;
26462632 }
26472633 }
26482634
@@ -3222,7 +3208,6 @@ function beginWork(
32223208 resolvedProps , // Resolved for outer only
32233209 'prop' ,
32243210 getComponentName ( type ) ,
3225- getCurrentFiberStackInDev ,
32263211 ) ;
32273212 }
32283213 }
0 commit comments