@@ -18,7 +18,7 @@ import type {
18
18
} from './ReactFiberSuspenseComponent' ;
19
19
import type { SuspenseContext } from './ReactFiberSuspenseContext' ;
20
20
21
- import checkPropTypes from 'prop-types /checkPropTypes' ;
21
+ import checkPropTypes from 'shared /checkPropTypes' ;
22
22
23
23
import {
24
24
IndeterminateComponent ,
@@ -75,7 +75,6 @@ import {refineResolvedLazyComponent} from 'shared/ReactLazyComponent';
75
75
import { REACT_LAZY_TYPE , getIteratorFn } from 'shared/ReactSymbols' ;
76
76
import {
77
77
getCurrentFiberOwnerNameInDevOrNull ,
78
- getCurrentFiberStackInDev ,
79
78
setIsRendering ,
80
79
} from './ReactCurrentFiber' ;
81
80
import { startWorkTimer , cancelWorkTimer } from './ReactDebugFiberPerf' ;
@@ -296,7 +295,6 @@ function updateForwardRef(
296
295
nextProps , // Resolved props
297
296
'prop' ,
298
297
getComponentName ( Component ) ,
299
- getCurrentFiberStackInDev ,
300
298
) ;
301
299
}
302
300
}
@@ -414,7 +412,6 @@ function updateMemoComponent(
414
412
nextProps , // Resolved props
415
413
'prop' ,
416
414
getComponentName ( type ) ,
417
- getCurrentFiberStackInDev ,
418
415
) ;
419
416
}
420
417
}
@@ -442,7 +439,6 @@ function updateMemoComponent(
442
439
nextProps , // Resolved props
443
440
'prop' ,
444
441
getComponentName ( type ) ,
445
- getCurrentFiberStackInDev ,
446
442
) ;
447
443
}
448
444
}
@@ -501,7 +497,6 @@ function updateSimpleMemoComponent(
501
497
nextProps , // Resolved (SimpleMemoComponent has no defaultProps)
502
498
'prop' ,
503
499
getComponentName ( outerMemoType ) ,
504
- getCurrentFiberStackInDev ,
505
500
) ;
506
501
}
507
502
// Inner propTypes will be validated in the function component path.
@@ -626,7 +621,6 @@ function updateFunctionComponent(
626
621
nextProps , // Resolved props
627
622
'prop' ,
628
623
getComponentName ( Component ) ,
629
- getCurrentFiberStackInDev ,
630
624
) ;
631
625
}
632
626
}
@@ -793,7 +787,6 @@ function updateClassComponent(
793
787
nextProps , // Resolved props
794
788
'prop' ,
795
789
getComponentName ( Component ) ,
796
- getCurrentFiberStackInDev ,
797
790
) ;
798
791
}
799
792
}
@@ -1198,7 +1191,6 @@ function mountLazyComponent(
1198
1191
resolvedProps , // Resolved for outer only
1199
1192
'prop' ,
1200
1193
getComponentName ( Component ) ,
1201
- getCurrentFiberStackInDev ,
1202
1194
) ;
1203
1195
}
1204
1196
}
@@ -2622,13 +2614,7 @@ function updateContextProvider(
2622
2614
const providerPropTypes = workInProgress . type . propTypes ;
2623
2615
2624
2616
if ( providerPropTypes ) {
2625
- checkPropTypes (
2626
- providerPropTypes ,
2627
- newProps ,
2628
- 'prop' ,
2629
- 'Context.Provider' ,
2630
- getCurrentFiberStackInDev ,
2631
- ) ;
2617
+ checkPropTypes ( providerPropTypes , newProps , 'prop' , 'Context.Provider' ) ;
2632
2618
}
2633
2619
}
2634
2620
@@ -3208,7 +3194,6 @@ function beginWork(
3208
3194
resolvedProps , // Resolved for outer only
3209
3195
'prop' ,
3210
3196
getComponentName ( type ) ,
3211
- getCurrentFiberStackInDev ,
3212
3197
) ;
3213
3198
}
3214
3199
}
0 commit comments