mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Revert rollout state of enableCache in React Native to next major only (#28565)
## Summary We're working on enabling the use of microtasks in React Native by default when using the new architecture. To enable this we need to synchronize the RN renderers from React, but doing this causes an error because the renderers now rely on an object defined in `React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED` (`ReactCurrentCache`) that's hasn't been released as a stable version yet (cache). This reverts the change done in #28519 to avoid enabling the cache API in RN until we release a new version of React in npm. ## How did you test this change? Manually built the RN renderer, copied it to the RN repository and tested e2e in RNTester. DiffTrain build for commit https://github.com/facebook/react/commit/9372c63116fc1e855c51d93d83f5150661371ec3.
This commit is contained in:
+1
-1
@@ -25454,7 +25454,7 @@ if (__DEV__) {
|
||||
return root;
|
||||
}
|
||||
|
||||
var ReactVersion = "18.3.0-canary-a870b2d54-20240314";
|
||||
var ReactVersion = "18.3.0-canary-9372c6311-20240315";
|
||||
|
||||
// Might add PROFILE later.
|
||||
|
||||
|
||||
+2
-2
@@ -9175,7 +9175,7 @@ var devToolsConfig$jscomp$inline_1016 = {
|
||||
throw Error("TestRenderer does not support findFiberByHostInstance()");
|
||||
},
|
||||
bundleType: 0,
|
||||
version: "18.3.0-canary-a870b2d54-20240314",
|
||||
version: "18.3.0-canary-9372c6311-20240315",
|
||||
rendererPackageName: "react-test-renderer"
|
||||
};
|
||||
var internals$jscomp$inline_1194 = {
|
||||
@@ -9206,7 +9206,7 @@ var internals$jscomp$inline_1194 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-canary-a870b2d54-20240314"
|
||||
reconcilerVersion: "18.3.0-canary-9372c6311-20240315"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1195 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
|
||||
+2
-2
@@ -9603,7 +9603,7 @@ var devToolsConfig$jscomp$inline_1058 = {
|
||||
throw Error("TestRenderer does not support findFiberByHostInstance()");
|
||||
},
|
||||
bundleType: 0,
|
||||
version: "18.3.0-canary-a870b2d54-20240314",
|
||||
version: "18.3.0-canary-9372c6311-20240315",
|
||||
rendererPackageName: "react-test-renderer"
|
||||
};
|
||||
var internals$jscomp$inline_1235 = {
|
||||
@@ -9634,7 +9634,7 @@ var internals$jscomp$inline_1235 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-canary-a870b2d54-20240314"
|
||||
reconcilerVersion: "18.3.0-canary-9372c6311-20240315"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1236 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ if (__DEV__) {
|
||||
}
|
||||
var dynamicFlags = require("ReactNativeInternalFeatureFlags");
|
||||
|
||||
var ReactVersion = "18.3.0-canary-a870b2d54-20240314";
|
||||
var ReactVersion = "18.3.0-canary-9372c6311-20240315";
|
||||
|
||||
// ATTENTION
|
||||
// When adding new symbols to this file,
|
||||
|
||||
+1
-1
@@ -628,4 +628,4 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactCurrentDispatcher.current.useTransition();
|
||||
};
|
||||
exports.version = "18.3.0-canary-a870b2d54-20240314";
|
||||
exports.version = "18.3.0-canary-9372c6311-20240315";
|
||||
|
||||
+1
-1
@@ -624,7 +624,7 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactCurrentDispatcher.current.useTransition();
|
||||
};
|
||||
exports.version = "18.3.0-canary-a870b2d54-20240314";
|
||||
exports.version = "18.3.0-canary-9372c6311-20240315";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
a870b2d5494351d75b68c3d9baf03a52fd40a8ef
|
||||
9372c63116fc1e855c51d93d83f5150661371ec3
|
||||
|
||||
Reference in New Issue
Block a user