Skip to content

Commit dc2c2d7

Browse files
committed
Set disableLegacyMode to true for www (#29871)
Set disableLegacyMode to true for www DiffTrain build for [fb9a90f](fb9a90f)
1 parent bf78731 commit dc2c2d7

35 files changed

+9115
-13225
lines changed

compiled/facebook-www/JSXDEVRuntime-dev.classic.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -418,9 +418,6 @@ __DEV__ &&
418418
return "SuspenseList";
419419
case 25:
420420
return "TracingMarker";
421-
case 17:
422-
case 28:
423-
if (disableLegacyMode) break;
424421
case 1:
425422
case 0:
426423
case 14:
@@ -809,10 +806,9 @@ __DEV__ &&
809806
enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing,
810807
enableRenderableContext = dynamicFeatureFlags.enableRenderableContext,
811808
disableDefaultPropsExceptForClasses =
812-
dynamicFeatureFlags.disableDefaultPropsExceptForClasses,
813-
enableFastJSX = dynamicFeatureFlags.enableFastJSX,
814-
disableLegacyMode = dynamicFeatureFlags.disableLegacyMode,
815-
REACT_ELEMENT_TYPE = Symbol.for("react.element"),
809+
dynamicFeatureFlags.disableDefaultPropsExceptForClasses;
810+
dynamicFeatureFlags = dynamicFeatureFlags.enableFastJSX;
811+
var REACT_ELEMENT_TYPE = Symbol.for("react.element"),
816812
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
817813
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
818814
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
@@ -857,7 +853,7 @@ __DEV__ &&
857853
specialPropKeyWarningShown;
858854
var didWarnAboutStringRefs = {};
859855
var didWarnAboutElementRef = {};
860-
var enableFastJSXWithStringRefs = enableFastJSX && !0,
856+
var enableFastJSXWithStringRefs = dynamicFeatureFlags && !0,
861857
enableFastJSXWithoutStringRefs = enableFastJSXWithStringRefs && !1,
862858
didWarnAboutKeySpread = {},
863859
ownerHasKeyUseWarning = {};

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
50e89ec9f2d44ab140e771e585226f7771da9652
1+
fb9a90fa480efce40ac2a845478817467f965ddc
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
50e89ec9f2d44ab140e771e585226f7771da9652
1+
fb9a90fa480efce40ac2a845478817467f965ddc

compiled/facebook-www/React-dev.classic.js

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -504,9 +504,6 @@ __DEV__ &&
504504
return "SuspenseList";
505505
case 25:
506506
return "TracingMarker";
507-
case 17:
508-
case 28:
509-
if (disableLegacyMode) break;
510507
case 1:
511508
case 0:
512509
case 14:
@@ -1199,7 +1196,6 @@ __DEV__ &&
11991196
disableDefaultPropsExceptForClasses =
12001197
dynamicFeatureFlags.disableDefaultPropsExceptForClasses,
12011198
enableFastJSX = dynamicFeatureFlags.enableFastJSX,
1202-
disableLegacyMode = dynamicFeatureFlags.disableLegacyMode,
12031199
REACT_ELEMENT_TYPE = Symbol.for("react.element"),
12041200
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
12051201
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
@@ -1398,36 +1394,20 @@ __DEV__ &&
13981394
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
13991395
ReactSharedInternals;
14001396
exports.act = function (callback) {
1401-
var prevIsBatchingLegacy = disableLegacyMode
1402-
? !1
1403-
: ReactSharedInternals.isBatchingLegacy,
1404-
prevActQueue = ReactSharedInternals.actQueue,
1397+
var prevActQueue = ReactSharedInternals.actQueue,
14051398
prevActScopeDepth = actScopeDepth;
14061399
actScopeDepth++;
14071400
var queue = (ReactSharedInternals.actQueue =
1408-
null !== prevActQueue ? prevActQueue : []);
1409-
disableLegacyMode || (ReactSharedInternals.isBatchingLegacy = !0);
1410-
var didAwaitActCall = !1;
1401+
null !== prevActQueue ? prevActQueue : []),
1402+
didAwaitActCall = !1;
14111403
try {
1412-
disableLegacyMode ||
1413-
(ReactSharedInternals.didScheduleLegacyUpdate = !1);
14141404
var result = callback();
1415-
var didScheduleLegacyUpdate = disableLegacyMode
1416-
? !1
1417-
: ReactSharedInternals.didScheduleLegacyUpdate;
1418-
!prevIsBatchingLegacy &&
1419-
didScheduleLegacyUpdate &&
1420-
flushActQueue(queue);
1421-
disableLegacyMode ||
1422-
(ReactSharedInternals.isBatchingLegacy = prevIsBatchingLegacy);
14231405
} catch (error$3) {
14241406
ReactSharedInternals.thrownErrors.push(error$3);
14251407
}
14261408
if (0 < ReactSharedInternals.thrownErrors.length)
14271409
throw (
1428-
(disableLegacyMode ||
1429-
(ReactSharedInternals.isBatchingLegacy = prevIsBatchingLegacy),
1430-
popActScope(prevActQueue, prevActScopeDepth),
1410+
(popActScope(prevActQueue, prevActScopeDepth),
14311411
(callback = aggregateErrors(ReactSharedInternals.thrownErrors)),
14321412
(ReactSharedInternals.thrownErrors.length = 0),
14331413
callback)
@@ -1987,7 +1967,7 @@ __DEV__ &&
19871967
exports.useTransition = function () {
19881968
return resolveDispatcher().useTransition();
19891969
};
1990-
exports.version = "19.0.0-www-classic-50e89ec9f2-20240612";
1970+
exports.version = "19.0.0-www-classic-fb9a90fa48-20240614";
19911971
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
19921972
"function" ===
19931973
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-dev.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1967,7 +1967,7 @@ __DEV__ &&
19671967
exports.useTransition = function () {
19681968
return resolveDispatcher().useTransition();
19691969
};
1970-
exports.version = "19.0.0-www-modern-50e89ec9f2-20240612";
1970+
exports.version = "19.0.0-www-modern-fb9a90fa48-20240614";
19711971
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
19721972
"function" ===
19731973
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-prod.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,4 +665,4 @@ exports.useSyncExternalStore = function (
665665
exports.useTransition = function () {
666666
return ReactSharedInternals.H.useTransition();
667667
};
668-
exports.version = "19.0.0-www-classic-50e89ec9f2-20240612";
668+
exports.version = "19.0.0-www-classic-fb9a90fa48-20240614";

compiled/facebook-www/React-prod.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,4 +665,4 @@ exports.useSyncExternalStore = function (
665665
exports.useTransition = function () {
666666
return ReactSharedInternals.H.useTransition();
667667
};
668-
exports.version = "19.0.0-www-modern-50e89ec9f2-20240612";
668+
exports.version = "19.0.0-www-modern-fb9a90fa48-20240614";

compiled/facebook-www/React-profiling.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ exports.useSyncExternalStore = function (
669669
exports.useTransition = function () {
670670
return ReactSharedInternals.H.useTransition();
671671
};
672-
exports.version = "19.0.0-www-classic-50e89ec9f2-20240612";
672+
exports.version = "19.0.0-www-classic-fb9a90fa48-20240614";
673673
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
674674
"function" ===
675675
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-profiling.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ exports.useSyncExternalStore = function (
669669
exports.useTransition = function () {
670670
return ReactSharedInternals.H.useTransition();
671671
};
672-
exports.version = "19.0.0-www-modern-50e89ec9f2-20240612";
672+
exports.version = "19.0.0-www-modern-fb9a90fa48-20240614";
673673
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
674674
"function" ===
675675
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)