Skip to content

Commit 115f6d6

Browse files
committed
Update isConcurrent RTR option usage (#28546)
Reverting some of facebook/react#27804 which renamed this option to stable. This PR just replaces internal usage to make upcoming PRs cleaner. Keeping isConcurrent unstable for the next major release in order to enable a broader deprecation of RTR and be consistent with concurrent rendering everywhere for next major. (facebook/react#28498) - Next major will use concurrent root - The old behavior (legacy root by default, concurrent root with unstable option) will be preserved for React Native until new architecture is fully shipped. - Flag and legacy root usage can be removed after RN dependency is unblocked without an additional breaking change DiffTrain build for commit facebook/react@3832730.
1 parent 77beaa1 commit 115f6d6

7 files changed

Lines changed: 27 additions & 32 deletions

File tree

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-dev.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<15edad3f290e335d70dc9466dde6cfcc>>
10+
* @generated SignedSource<<a3b83de91596e95a8c9484b94ff6b74c>>
1111
*/
1212

1313
"use strict";
@@ -25454,7 +25454,7 @@ if (__DEV__) {
2545425454
return root;
2545525455
}
2545625456

25457-
var ReactVersion = "18.3.0-canary-b09e102ff-20240316";
25457+
var ReactVersion = "18.3.0-canary-38327309a-20240318";
2545825458

2545925459
// Might add PROFILE later.
2546025460

@@ -26358,10 +26358,7 @@ if (__DEV__) {
2635826358
createNodeMock = options.createNodeMock;
2635926359
}
2636026360

26361-
if (
26362-
options.unstable_isConcurrent === true ||
26363-
options.isConcurrent === true
26364-
) {
26361+
if (options.unstable_isConcurrent === true) {
2636526362
isConcurrent = true;
2636626363
}
2636726364

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-prod.js

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<c324111a5b9cb8168651dba09e62a33a>>
10+
* @generated SignedSource<<f286949b9793004b5a064c2aeef09640>>
1111
*/
1212

1313
"use strict";
@@ -9175,7 +9175,7 @@ var devToolsConfig$jscomp$inline_1016 = {
91759175
throw Error("TestRenderer does not support findFiberByHostInstance()");
91769176
},
91779177
bundleType: 0,
9178-
version: "18.3.0-canary-b09e102ff-20240316",
9178+
version: "18.3.0-canary-38327309a-20240318",
91799179
rendererPackageName: "react-test-renderer"
91809180
};
91819181
var internals$jscomp$inline_1194 = {
@@ -9206,7 +9206,7 @@ var internals$jscomp$inline_1194 = {
92069206
scheduleRoot: null,
92079207
setRefreshHandler: null,
92089208
getCurrentFiber: null,
9209-
reconcilerVersion: "18.3.0-canary-b09e102ff-20240316"
9209+
reconcilerVersion: "18.3.0-canary-38327309a-20240318"
92109210
};
92119211
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
92129212
var hook$jscomp$inline_1195 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -9228,16 +9228,15 @@ exports.create = function (element, options) {
92289228
isConcurrent = !1,
92299229
isStrictMode = !1,
92309230
concurrentUpdatesByDefault = null;
9231-
if ("object" === typeof options && null !== options) {
9232-
"function" === typeof options.createNodeMock &&
9233-
(createNodeMock = options.createNodeMock);
9234-
if (!0 === options.unstable_isConcurrent || !0 === options.isConcurrent)
9235-
isConcurrent = !0;
9236-
!0 === options.unstable_strictMode && (isStrictMode = !0);
9231+
"object" === typeof options &&
9232+
null !== options &&
9233+
("function" === typeof options.createNodeMock &&
9234+
(createNodeMock = options.createNodeMock),
9235+
!0 === options.unstable_isConcurrent && (isConcurrent = !0),
9236+
!0 === options.unstable_strictMode && (isStrictMode = !0),
92379237
void 0 !== options.unstable_concurrentUpdatesByDefault &&
92389238
(concurrentUpdatesByDefault =
9239-
options.unstable_concurrentUpdatesByDefault);
9240-
}
9239+
options.unstable_concurrentUpdatesByDefault));
92419240
var container = {
92429241
children: [],
92439242
createNodeMock: createNodeMock,

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-profiling.js

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<ad44e5907f7d21ae6abb5c30cb23b66a>>
10+
* @generated SignedSource<<e7f6aa2c01048ac2a1b605aae48eb66a>>
1111
*/
1212

1313
"use strict";
@@ -9603,7 +9603,7 @@ var devToolsConfig$jscomp$inline_1058 = {
96039603
throw Error("TestRenderer does not support findFiberByHostInstance()");
96049604
},
96059605
bundleType: 0,
9606-
version: "18.3.0-canary-b09e102ff-20240316",
9606+
version: "18.3.0-canary-38327309a-20240318",
96079607
rendererPackageName: "react-test-renderer"
96089608
};
96099609
var internals$jscomp$inline_1235 = {
@@ -9634,7 +9634,7 @@ var internals$jscomp$inline_1235 = {
96349634
scheduleRoot: null,
96359635
setRefreshHandler: null,
96369636
getCurrentFiber: null,
9637-
reconcilerVersion: "18.3.0-canary-b09e102ff-20240316"
9637+
reconcilerVersion: "18.3.0-canary-38327309a-20240318"
96389638
};
96399639
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
96409640
var hook$jscomp$inline_1236 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -9656,16 +9656,15 @@ exports.create = function (element, options) {
96569656
isConcurrent = !1,
96579657
isStrictMode = !1,
96589658
concurrentUpdatesByDefault = null;
9659-
if ("object" === typeof options && null !== options) {
9660-
"function" === typeof options.createNodeMock &&
9661-
(createNodeMock = options.createNodeMock);
9662-
if (!0 === options.unstable_isConcurrent || !0 === options.isConcurrent)
9663-
isConcurrent = !0;
9664-
!0 === options.unstable_strictMode && (isStrictMode = !0);
9659+
"object" === typeof options &&
9660+
null !== options &&
9661+
("function" === typeof options.createNodeMock &&
9662+
(createNodeMock = options.createNodeMock),
9663+
!0 === options.unstable_isConcurrent && (isConcurrent = !0),
9664+
!0 === options.unstable_strictMode && (isStrictMode = !0),
96659665
void 0 !== options.unstable_concurrentUpdatesByDefault &&
96669666
(concurrentUpdatesByDefault =
9667-
options.unstable_concurrentUpdatesByDefault);
9668-
}
9667+
options.unstable_concurrentUpdatesByDefault));
96699668
var container = {
96709669
children: [],
96719670
createNodeMock: createNodeMock,

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if (__DEV__) {
2626
}
2727
var dynamicFlags = require("ReactNativeInternalFeatureFlags");
2828

29-
var ReactVersion = "18.3.0-canary-b09e102ff-20240316";
29+
var ReactVersion = "18.3.0-canary-38327309a-20240318";
3030

3131
// ATTENTION
3232
// When adding new symbols to this file,

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-prod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,4 +628,4 @@ exports.useSyncExternalStore = function (
628628
exports.useTransition = function () {
629629
return ReactCurrentDispatcher.current.useTransition();
630630
};
631-
exports.version = "18.3.0-canary-b09e102ff-20240316";
631+
exports.version = "18.3.0-canary-38327309a-20240318";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-profiling.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ exports.useSyncExternalStore = function (
624624
exports.useTransition = function () {
625625
return ReactCurrentDispatcher.current.useTransition();
626626
};
627-
exports.version = "18.3.0-canary-b09e102ff-20240316";
627+
exports.version = "18.3.0-canary-38327309a-20240318";
628628
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
629629
"function" ===
630630
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
b09e102ff1e2aaaf5eb6585b04609ac7ff54a5c8
1+
38327309a4172a52cf94e8e264990bedafc1df6e

0 commit comments

Comments
 (0)