Skip to content

Commit aed6d81

Browse files
committed
Revert "Set disableLegacyMode to true for www" (#29901)
Reverts #29871 Just temporarily while we're investigating something. DiffTrain build for [88959fd](88959fd)
1 parent 34a319d commit aed6d81

35 files changed

+13228
-9118
lines changed

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,9 @@ __DEV__ &&
418418
return "SuspenseList";
419419
case 25:
420420
return "TracingMarker";
421+
case 17:
422+
case 28:
423+
if (disableLegacyMode) break;
421424
case 1:
422425
case 0:
423426
case 14:
@@ -806,9 +809,10 @@ __DEV__ &&
806809
enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing,
807810
enableRenderableContext = dynamicFeatureFlags.enableRenderableContext,
808811
disableDefaultPropsExceptForClasses =
809-
dynamicFeatureFlags.disableDefaultPropsExceptForClasses;
810-
dynamicFeatureFlags = dynamicFeatureFlags.enableFastJSX;
811-
var REACT_ELEMENT_TYPE = Symbol.for("react.element"),
812+
dynamicFeatureFlags.disableDefaultPropsExceptForClasses,
813+
enableFastJSX = dynamicFeatureFlags.enableFastJSX,
814+
disableLegacyMode = dynamicFeatureFlags.disableLegacyMode,
815+
REACT_ELEMENT_TYPE = Symbol.for("react.element"),
812816
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
813817
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
814818
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
@@ -853,7 +857,7 @@ __DEV__ &&
853857
specialPropKeyWarningShown;
854858
var didWarnAboutStringRefs = {};
855859
var didWarnAboutElementRef = {};
856-
var enableFastJSXWithStringRefs = dynamicFeatureFlags && !0,
860+
var enableFastJSXWithStringRefs = enableFastJSX && !0,
857861
enableFastJSXWithoutStringRefs = enableFastJSXWithStringRefs && !1,
858862
didWarnAboutKeySpread = {},
859863
ownerHasKeyUseWarning = {};

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
f0e8164410049aabc680035e8fd45b657eb020ab
1+
88959fd54af7d418b799a9898b921f32a356b212
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
f0e8164410049aabc680035e8fd45b657eb020ab
1+
88959fd54af7d418b799a9898b921f32a356b212

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

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,9 @@ __DEV__ &&
504504
return "SuspenseList";
505505
case 25:
506506
return "TracingMarker";
507+
case 17:
508+
case 28:
509+
if (disableLegacyMode) break;
507510
case 1:
508511
case 0:
509512
case 14:
@@ -1196,6 +1199,7 @@ __DEV__ &&
11961199
disableDefaultPropsExceptForClasses =
11971200
dynamicFeatureFlags.disableDefaultPropsExceptForClasses,
11981201
enableFastJSX = dynamicFeatureFlags.enableFastJSX,
1202+
disableLegacyMode = dynamicFeatureFlags.disableLegacyMode,
11991203
REACT_ELEMENT_TYPE = Symbol.for("react.element"),
12001204
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
12011205
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
@@ -1394,20 +1398,36 @@ __DEV__ &&
13941398
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
13951399
ReactSharedInternals;
13961400
exports.act = function (callback) {
1397-
var prevActQueue = ReactSharedInternals.actQueue,
1401+
var prevIsBatchingLegacy = disableLegacyMode
1402+
? !1
1403+
: ReactSharedInternals.isBatchingLegacy,
1404+
prevActQueue = ReactSharedInternals.actQueue,
13981405
prevActScopeDepth = actScopeDepth;
13991406
actScopeDepth++;
14001407
var queue = (ReactSharedInternals.actQueue =
1401-
null !== prevActQueue ? prevActQueue : []),
1402-
didAwaitActCall = !1;
1408+
null !== prevActQueue ? prevActQueue : []);
1409+
disableLegacyMode || (ReactSharedInternals.isBatchingLegacy = !0);
1410+
var didAwaitActCall = !1;
14031411
try {
1412+
disableLegacyMode ||
1413+
(ReactSharedInternals.didScheduleLegacyUpdate = !1);
14041414
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);
14051423
} catch (error$3) {
14061424
ReactSharedInternals.thrownErrors.push(error$3);
14071425
}
14081426
if (0 < ReactSharedInternals.thrownErrors.length)
14091427
throw (
1410-
(popActScope(prevActQueue, prevActScopeDepth),
1428+
(disableLegacyMode ||
1429+
(ReactSharedInternals.isBatchingLegacy = prevIsBatchingLegacy),
1430+
popActScope(prevActQueue, prevActScopeDepth),
14111431
(callback = aggregateErrors(ReactSharedInternals.thrownErrors)),
14121432
(ReactSharedInternals.thrownErrors.length = 0),
14131433
callback)
@@ -1967,7 +1987,7 @@ __DEV__ &&
19671987
exports.useTransition = function () {
19681988
return resolveDispatcher().useTransition();
19691989
};
1970-
exports.version = "19.0.0-www-classic-f0e8164410-20240614";
1990+
exports.version = "19.0.0-www-classic-88959fd54a-20240614";
19711991
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
19721992
"function" ===
19731993
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-f0e8164410-20240614";
1970+
exports.version = "19.0.0-www-modern-88959fd54a-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-f0e8164410-20240614";
668+
exports.version = "19.0.0-www-classic-88959fd54a-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-f0e8164410-20240614";
668+
exports.version = "19.0.0-www-modern-88959fd54a-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-f0e8164410-20240614";
672+
exports.version = "19.0.0-www-classic-88959fd54a-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-f0e8164410-20240614";
672+
exports.version = "19.0.0-www-modern-88959fd54a-20240614";
673673
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
674674
"function" ===
675675
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)