File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -10,18 +10,13 @@ import React from 'react';
1010const ReactSharedInternals =
1111 React . __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED ;
1212
13- // Add fallback for newer renderers running with older react package versions.
13+ // Prevent newer renderers from RTE when used with older react package versions.
1414// Current owner and dispatcher used to share the same ref,
1515// but PR #14548 split them out to better support the react-debug-tools package.
1616if ( ! ReactSharedInternals . hasOwnProperty ( 'ReactCurrentDispatcher' ) ) {
1717 const { ReactCurrentOwner} = ReactSharedInternals ;
1818 ReactSharedInternals . ReactCurrentDispatcher = {
19- get current ( ) {
20- return ReactCurrentOwner . currentDispatcher ;
21- } ,
22- set current ( value ) {
23- ReactCurrentOwner . currentDispatcher = value ;
24- } ,
19+ current : null ,
2520 } ;
2621}
2722
You can’t perform that action at this time.
0 commit comments