Skip to content

Commit

Permalink
Set disableLegacyMode to true for www (#29871)
Browse files Browse the repository at this point in the history
Set disableLegacyMode to true for www

DiffTrain build for [fb9a90f](fb9a90f)
  • Loading branch information
kassens committed Jun 14, 2024
1 parent bf78731 commit dc2c2d7
Show file tree
Hide file tree
Showing 35 changed files with 9,115 additions and 13,225 deletions.
12 changes: 4 additions & 8 deletions compiled/facebook-www/JSXDEVRuntime-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,9 +418,6 @@ __DEV__ &&
return "SuspenseList";
case 25:
return "TracingMarker";
case 17:
case 28:
if (disableLegacyMode) break;
case 1:
case 0:
case 14:
Expand Down Expand Up @@ -809,10 +806,9 @@ __DEV__ &&
enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing,
enableRenderableContext = dynamicFeatureFlags.enableRenderableContext,
disableDefaultPropsExceptForClasses =
dynamicFeatureFlags.disableDefaultPropsExceptForClasses,
enableFastJSX = dynamicFeatureFlags.enableFastJSX,
disableLegacyMode = dynamicFeatureFlags.disableLegacyMode,
REACT_ELEMENT_TYPE = Symbol.for("react.element"),
dynamicFeatureFlags.disableDefaultPropsExceptForClasses;
dynamicFeatureFlags = dynamicFeatureFlags.enableFastJSX;
var REACT_ELEMENT_TYPE = Symbol.for("react.element"),
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
Expand Down Expand Up @@ -857,7 +853,7 @@ __DEV__ &&
specialPropKeyWarningShown;
var didWarnAboutStringRefs = {};
var didWarnAboutElementRef = {};
var enableFastJSXWithStringRefs = enableFastJSX && !0,
var enableFastJSXWithStringRefs = dynamicFeatureFlags && !0,
enableFastJSXWithoutStringRefs = enableFastJSXWithStringRefs && !1,
didWarnAboutKeySpread = {},
ownerHasKeyUseWarning = {};
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
50e89ec9f2d44ab140e771e585226f7771da9652
fb9a90fa480efce40ac2a845478817467f965ddc
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION_TRANSFORMS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
50e89ec9f2d44ab140e771e585226f7771da9652
fb9a90fa480efce40ac2a845478817467f965ddc
30 changes: 5 additions & 25 deletions compiled/facebook-www/React-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -504,9 +504,6 @@ __DEV__ &&
return "SuspenseList";
case 25:
return "TracingMarker";
case 17:
case 28:
if (disableLegacyMode) break;
case 1:
case 0:
case 14:
Expand Down Expand Up @@ -1199,7 +1196,6 @@ __DEV__ &&
disableDefaultPropsExceptForClasses =
dynamicFeatureFlags.disableDefaultPropsExceptForClasses,
enableFastJSX = dynamicFeatureFlags.enableFastJSX,
disableLegacyMode = dynamicFeatureFlags.disableLegacyMode,
REACT_ELEMENT_TYPE = Symbol.for("react.element"),
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
Expand Down Expand Up @@ -1398,36 +1394,20 @@ __DEV__ &&
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
ReactSharedInternals;
exports.act = function (callback) {
var prevIsBatchingLegacy = disableLegacyMode
? !1
: ReactSharedInternals.isBatchingLegacy,
prevActQueue = ReactSharedInternals.actQueue,
var prevActQueue = ReactSharedInternals.actQueue,
prevActScopeDepth = actScopeDepth;
actScopeDepth++;
var queue = (ReactSharedInternals.actQueue =
null !== prevActQueue ? prevActQueue : []);
disableLegacyMode || (ReactSharedInternals.isBatchingLegacy = !0);
var didAwaitActCall = !1;
null !== prevActQueue ? prevActQueue : []),
didAwaitActCall = !1;
try {
disableLegacyMode ||
(ReactSharedInternals.didScheduleLegacyUpdate = !1);
var result = callback();
var didScheduleLegacyUpdate = disableLegacyMode
? !1
: ReactSharedInternals.didScheduleLegacyUpdate;
!prevIsBatchingLegacy &&
didScheduleLegacyUpdate &&
flushActQueue(queue);
disableLegacyMode ||
(ReactSharedInternals.isBatchingLegacy = prevIsBatchingLegacy);
} catch (error$3) {
ReactSharedInternals.thrownErrors.push(error$3);
}
if (0 < ReactSharedInternals.thrownErrors.length)
throw (
(disableLegacyMode ||
(ReactSharedInternals.isBatchingLegacy = prevIsBatchingLegacy),
popActScope(prevActQueue, prevActScopeDepth),
(popActScope(prevActQueue, prevActScopeDepth),
(callback = aggregateErrors(ReactSharedInternals.thrownErrors)),
(ReactSharedInternals.thrownErrors.length = 0),
callback)
Expand Down Expand Up @@ -1987,7 +1967,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.0.0-www-classic-50e89ec9f2-20240612";
exports.version = "19.0.0-www-classic-fb9a90fa48-20240614";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -1967,7 +1967,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.0.0-www-modern-50e89ec9f2-20240612";
exports.version = "19.0.0-www-modern-fb9a90fa48-20240614";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -665,4 +665,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-classic-50e89ec9f2-20240612";
exports.version = "19.0.0-www-classic-fb9a90fa48-20240614";
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -665,4 +665,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-modern-50e89ec9f2-20240612";
exports.version = "19.0.0-www-modern-fb9a90fa48-20240614";
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-profiling.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-classic-50e89ec9f2-20240612";
exports.version = "19.0.0-www-classic-fb9a90fa48-20240614";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-profiling.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-modern-50e89ec9f2-20240612";
exports.version = "19.0.0-www-modern-fb9a90fa48-20240614";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
Loading

0 comments on commit dc2c2d7

Please sign in to comment.