We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1107b96 commit f2e2637Copy full SHA for f2e2637
packages/shared/ReactSharedInternals.js
@@ -10,4 +10,13 @@ import React from 'react';
10
const ReactSharedInternals =
11
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
12
13
+// Prevent newer renderers from RTE when used with older react package versions.
14
+// Current owner and dispatcher used to share the same ref,
15
+// but PR #14548 split them out to better support the react-debug-tools package.
16
+if (!ReactSharedInternals.hasOwnProperty('ReactCurrentDispatcher')) {
17
+ ReactSharedInternals.ReactCurrentDispatcher = {
18
+ current: null,
19
+ };
20
+}
21
+
22
export default ReactSharedInternals;
0 commit comments