File tree Expand file tree Collapse file tree 7 files changed +6
-24
lines changed Expand file tree Collapse file tree 7 files changed +6
-24
lines changed Original file line number Diff line number Diff line change 2929 "scheduler" : " ^0.19.0"
3030 },
3131 "peerDependencies" : {
32- "react" : " ^16.0 .0"
32+ "react" : " ^16.13 .0"
3333 },
3434 "files" : [
3535 " LICENSE" ,
Original file line number Diff line number Diff line change 2222 "scheduler" : " ^0.19.0"
2323 },
2424 "peerDependencies" : {
25- "react" : " ^16.0 .0"
25+ "react" : " ^16.13 .0"
2626 },
2727 "files" : [
2828 " LICENSE" ,
Original file line number Diff line number Diff line change 1818 "react-server" : " *"
1919 },
2020 "peerDependencies" : {
21- "react" : " ^16.0 .0"
21+ "react" : " ^16.13 .0"
2222 },
2323 "files" : [
2424 " LICENSE" ,
Original file line number Diff line number Diff line change 2626 "node" : " >=0.10.0"
2727 },
2828 "peerDependencies" : {
29- "react" : " ^16.0 .0"
29+ "react" : " ^16.13 .0"
3030 },
3131 "dependencies" : {
3232 "loose-envify" : " ^1.1.0" ,
Original file line number Diff line number Diff line change 2525 "scheduler" : " ^0.19.0"
2626 },
2727 "peerDependencies" : {
28- "react" : " ^16.0 .0"
28+ "react" : " ^16.13 .0"
2929 },
3030 "files" : [
3131 " LICENSE" ,
Original file line number Diff line number Diff line change @@ -38,11 +38,7 @@ export function initializeLazyComponentType(
3838 lazyComponent : LazyComponent < any > ,
3939) : void {
4040 if ( lazyComponent . _status === Uninitialized ) {
41- let ctor = lazyComponent . _result ;
42- if ( ! ctor ) {
43- // TODO: Remove this later. THis only exists in case you use an older "react" package.
44- ctor = ( ( lazyComponent : any ) . _ctor : typeof ctor ) ;
45- }
41+ const ctor = lazyComponent . _result ;
4642 const thenable = ctor ( ) ;
4743 // Transition to the next state.
4844 const pending : PendingLazyComponent < any > = (lazyComponent: any);
Original file line number Diff line number Diff line change @@ -12,18 +12,4 @@ import * as React from 'react';
1212const ReactSharedInternals =
1313 React . __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED ;
1414
15- // Prevent newer renderers from RTE when used with older react package versions.
16- // Current owner and dispatcher used to share the same ref,
17- // but PR #14548 split them out to better support the react-debug-tools package.
18- if ( ! ReactSharedInternals . hasOwnProperty ( 'ReactCurrentDispatcher' ) ) {
19- ReactSharedInternals . ReactCurrentDispatcher = {
20- current : null ,
21- } ;
22- }
23- if ( ! ReactSharedInternals . hasOwnProperty ( 'ReactCurrentBatchConfig' ) ) {
24- ReactSharedInternals . ReactCurrentBatchConfig = {
25- suspense : null ,
26- } ;
27- }
28-
2915export default ReactSharedInternals ;
You can’t perform that action at this time.
0 commit comments