Skip to content

Commit

Permalink
chore: gate legacy apis for react-devtools-shell (#28273)
Browse files Browse the repository at this point in the history
- `react-devtools-shell` is only used for e2e tests
- Based on the React version we testing against, we will show/hide roots
using legacy render

DiffTrain build for commit 03d6f7c.
  • Loading branch information
hoxyq committed Feb 9, 2024
1 parent 0d92498 commit 2ad4616
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25678,7 +25678,7 @@ if (__DEV__) {
return root;
}

var ReactVersion = "18.3.0-canary-36b078cc7-20240209";
var ReactVersion = "18.3.0-canary-03d6f7cf0-20240209";

// Might add PROFILE later.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9153,7 +9153,7 @@ var devToolsConfig$jscomp$inline_1011 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-36b078cc7-20240209",
version: "18.3.0-canary-03d6f7cf0-20240209",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1189 = {
Expand Down Expand Up @@ -9184,7 +9184,7 @@ var internals$jscomp$inline_1189 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-36b078cc7-20240209"
reconcilerVersion: "18.3.0-canary-03d6f7cf0-20240209"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1190 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9581,7 +9581,7 @@ var devToolsConfig$jscomp$inline_1053 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-36b078cc7-20240209",
version: "18.3.0-canary-03d6f7cf0-20240209",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1230 = {
Expand Down Expand Up @@ -9612,7 +9612,7 @@ var internals$jscomp$inline_1230 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-36b078cc7-20240209"
reconcilerVersion: "18.3.0-canary-03d6f7cf0-20240209"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1231 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if (__DEV__) {
) {
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
}
var ReactVersion = "18.3.0-canary-36b078cc7-20240209";
var ReactVersion = "18.3.0-canary-03d6f7cf0-20240209";

// ATTENTION
// When adding new symbols to this file,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -551,4 +551,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-36b078cc7-20240209";
exports.version = "18.3.0-canary-03d6f7cf0-20240209";
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-36b078cc7-20240209";
exports.version = "18.3.0-canary-03d6f7cf0-20240209";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
36b078cc7a50ad0cd66e7f6b4b8e4a1295e47f67
03d6f7cf007cb3b2a3a65e6ec29be02aafd87870

0 comments on commit 2ad4616

Please sign in to comment.