Move ReactCurrentDispatcher back to shared internals (#27462)

The jsx-runtime uses the ReactCurrentDispatcher from shared internals.
Recently this was moved to ReactServerSharedInternals which broke
jsx-runtime. This change moves it back to ReactSharedInternals until we
can come up with a new forking mechanism.

DiffTrain build for commit https://github.com/facebook/react/commit/6f132439578ee11e04b41a278df51c52b0dc8563.
This commit is contained in:
gnoff
2023-10-04 20:21:02 +00:00
parent 0b461072b1
commit 963258f7ae
7 changed files with 9 additions and 9 deletions
@@ -24772,7 +24772,7 @@ function createFiberRoot(
return root;
}
var ReactVersion = "18.3.0-canary-ca237d6f0-20231004";
var ReactVersion = "18.3.0-canary-6f1324395-20231004";
// Might add PROFILE later.
@@ -8978,7 +8978,7 @@ var devToolsConfig$jscomp$inline_998 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-ca237d6f0-20231004",
version: "18.3.0-canary-6f1324395-20231004",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1191 = {
@@ -9009,7 +9009,7 @@ var internals$jscomp$inline_1191 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-ca237d6f0-20231004"
reconcilerVersion: "18.3.0-canary-6f1324395-20231004"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1192 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -9404,7 +9404,7 @@ var devToolsConfig$jscomp$inline_1040 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-ca237d6f0-20231004",
version: "18.3.0-canary-6f1324395-20231004",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1232 = {
@@ -9435,7 +9435,7 @@ var internals$jscomp$inline_1232 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-ca237d6f0-20231004"
reconcilerVersion: "18.3.0-canary-6f1324395-20231004"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1233 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -27,7 +27,7 @@ if (
}
"use strict";
var ReactVersion = "18.3.0-canary-ca237d6f0-20231004";
var ReactVersion = "18.3.0-canary-6f1324395-20231004";
// ATTENTION
// When adding new symbols to this file,
@@ -616,4 +616,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-ca237d6f0-20231004";
exports.version = "18.3.0-canary-6f1324395-20231004";
@@ -619,7 +619,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-ca237d6f0-20231004";
exports.version = "18.3.0-canary-6f1324395-20231004";
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
@@ -1 +1 @@
ca237d6f0ab986e799f192224d3066f76d66b73b
6f132439578ee11e04b41a278df51c52b0dc8563