Skip to content

Commit

Permalink
[www] set disableLegacyMode to true (#31439)
Browse files Browse the repository at this point in the history
DiffTrain build for [682a103](682a103)
  • Loading branch information
kassens committed Nov 7, 2024
1 parent d630edd commit db36607
Show file tree
Hide file tree
Showing 34 changed files with 7,744 additions and 11,771 deletions.
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
e1378902bbb322aa1fe1953780f4b2b5f80d26b1
682a103cde99a3091850d1c27de8846b5d14e803
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION_TRANSFORMS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
e1378902bbb322aa1fe1953780f4b2b5f80d26b1
682a103cde99a3091850d1c27de8846b5d14e803
27 changes: 5 additions & 22 deletions compiled/facebook-www/React-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,6 @@ __DEV__ &&
enableRenderableContext = dynamicFeatureFlags.enableRenderableContext,
enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing,
renameElementSymbol = dynamicFeatureFlags.renameElementSymbol,
disableLegacyMode = dynamicFeatureFlags.disableLegacyMode,
REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
REACT_ELEMENT_TYPE = renameElementSymbol
? Symbol.for("react.transitional.element")
Expand Down Expand Up @@ -1243,36 +1242,20 @@ __DEV__ &&
ReactSharedInternals;
exports.__COMPILER_RUNTIME = ReactCompilerRuntime;
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 @@ -1836,7 +1819,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.0.0-www-classic-e1378902-20241106";
exports.version = "19.0.0-www-classic-682a103c-20241107";
"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 @@ -1819,7 +1819,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.0.0-www-modern-e1378902-20241106";
exports.version = "19.0.0-www-modern-682a103c-20241107";
"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 @@ -619,4 +619,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-classic-e1378902-20241106";
exports.version = "19.0.0-www-classic-682a103c-20241107";
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 @@ -619,4 +619,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-modern-e1378902-20241106";
exports.version = "19.0.0-www-modern-682a103c-20241107";
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 @@ -623,7 +623,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-classic-e1378902-20241106";
exports.version = "19.0.0-www-classic-682a103c-20241107";
"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 @@ -623,7 +623,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-modern-e1378902-20241106";
exports.version = "19.0.0-www-modern-682a103c-20241107";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
Loading

0 comments on commit db36607

Please sign in to comment.