Skip to content

Commit

Permalink
Land enableAsyncActions enableFormActions in www (#28315)
Browse files Browse the repository at this point in the history
DiffTrain build for [5d445b5](5d445b5)
  • Loading branch information
rickhanlonii committed Feb 13, 2024
1 parent 1985f4f commit 7b53202
Show file tree
Hide file tree
Showing 29 changed files with 3,181 additions and 4,122 deletions.
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14fd9630ee04387f4361da289393234e2b7d93b6
5d445b50a670d6cdc52943ca4e5ab3422792c57c
14 changes: 2 additions & 12 deletions compiled/facebook-www/React-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if (__DEV__) {
) {
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
}
var ReactVersion = "18.3.0-www-classic-38e30556";
var ReactVersion = "18.3.0-www-classic-77190284";

// ATTENTION
// When adding new symbols to this file,
Expand Down Expand Up @@ -475,7 +475,6 @@ if (__DEV__) {

var enableDebugTracing = dynamicFeatureFlags.enableDebugTracing,
enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing,
enableAsyncActions = dynamicFeatureFlags.enableAsyncActions,
enableRenderableContext = dynamicFeatureFlags.enableRenderableContext; // On WWW, false is used for a new modern build.

function getWrappedName(outerType, innerType, wrapperName) {
Expand Down Expand Up @@ -3024,7 +3023,7 @@ if (__DEV__) {
}
}

if (enableAsyncActions) {
{
try {
var returnValue = scope();

Expand All @@ -3044,15 +3043,6 @@ if (__DEV__) {
warnAboutTransitionSubscriptions(prevTransition, currentTransition);
ReactCurrentBatchConfig.transition = prevTransition;
}
} else {
// When async actions are not enabled, startTransition does not
// capture errors.
try {
scope();
} finally {
warnAboutTransitionSubscriptions(prevTransition, currentTransition);
ReactCurrentBatchConfig.transition = prevTransition;
}
}
}

Expand Down
14 changes: 2 additions & 12 deletions compiled/facebook-www/React-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if (__DEV__) {
) {
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
}
var ReactVersion = "18.3.0-www-modern-f32f96e5";
var ReactVersion = "18.3.0-www-modern-5d2c8ee0";

// ATTENTION
// When adding new symbols to this file,
Expand Down Expand Up @@ -475,7 +475,6 @@ if (__DEV__) {

var enableDebugTracing = dynamicFeatureFlags.enableDebugTracing,
enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing,
enableAsyncActions = dynamicFeatureFlags.enableAsyncActions,
enableRenderableContext = dynamicFeatureFlags.enableRenderableContext; // On WWW, true is used for a new modern build.

function getWrappedName(outerType, innerType, wrapperName) {
Expand Down Expand Up @@ -2989,7 +2988,7 @@ if (__DEV__) {
}
}

if (enableAsyncActions) {
{
try {
var returnValue = scope();

Expand All @@ -3009,15 +3008,6 @@ if (__DEV__) {
warnAboutTransitionSubscriptions(prevTransition, currentTransition);
ReactCurrentBatchConfig.transition = prevTransition;
}
} else {
// When async actions are not enabled, startTransition does not
// capture errors.
try {
scope();
} finally {
warnAboutTransitionSubscriptions(prevTransition, currentTransition);
ReactCurrentBatchConfig.transition = prevTransition;
}
}
}

Expand Down
38 changes: 15 additions & 23 deletions compiled/facebook-www/React-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ pureComponentPrototype.isPureReactComponent = !0;
var isArrayImpl = Array.isArray,
dynamicFeatureFlags = require("ReactFeatureFlags"),
enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing,
enableAsyncActions = dynamicFeatureFlags.enableAsyncActions,
enableRenderableContext = dynamicFeatureFlags.enableRenderableContext,
hasOwnProperty = Object.prototype.hasOwnProperty,
ReactCurrentOwner$1 = { current: null };
Expand Down Expand Up @@ -518,27 +517,20 @@ exports.startTransition = function (scope, options) {
void 0 !== options.name &&
((ReactCurrentBatchConfig.transition.name = options.name),
(ReactCurrentBatchConfig.transition.startTime = -1));
if (enableAsyncActions)
try {
var returnValue = scope();
"object" === typeof returnValue &&
null !== returnValue &&
"function" === typeof returnValue.then &&
(callbacks.forEach(function (callback) {
return callback(currentTransition, returnValue);
}),
returnValue.then(noop, onError));
} catch (error) {
onError(error);
} finally {
ReactCurrentBatchConfig.transition = prevTransition;
}
else
try {
scope();
} finally {
ReactCurrentBatchConfig.transition = prevTransition;
}
try {
var returnValue = scope();
"object" === typeof returnValue &&
null !== returnValue &&
"function" === typeof returnValue.then &&
(callbacks.forEach(function (callback) {
return callback(currentTransition, returnValue);
}),
returnValue.then(noop, onError));
} catch (error) {
onError(error);
} finally {
ReactCurrentBatchConfig.transition = prevTransition;
}
};
exports.unstable_Activity = REACT_OFFSCREEN_TYPE;
exports.unstable_Cache = REACT_CACHE_TYPE;
Expand Down Expand Up @@ -626,4 +618,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-www-classic-25a61d97";
exports.version = "18.3.0-www-classic-a886996f";
38 changes: 15 additions & 23 deletions compiled/facebook-www/React-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ pureComponentPrototype.isPureReactComponent = !0;
var isArrayImpl = Array.isArray,
dynamicFeatureFlags = require("ReactFeatureFlags"),
enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing,
enableAsyncActions = dynamicFeatureFlags.enableAsyncActions,
enableRenderableContext = dynamicFeatureFlags.enableRenderableContext,
hasOwnProperty = Object.prototype.hasOwnProperty,
ReactCurrentOwner$1 = { current: null };
Expand Down Expand Up @@ -511,27 +510,20 @@ exports.startTransition = function (scope, options) {
void 0 !== options.name &&
((ReactCurrentBatchConfig.transition.name = options.name),
(ReactCurrentBatchConfig.transition.startTime = -1));
if (enableAsyncActions)
try {
var returnValue = scope();
"object" === typeof returnValue &&
null !== returnValue &&
"function" === typeof returnValue.then &&
(callbacks.forEach(function (callback) {
return callback(currentTransition, returnValue);
}),
returnValue.then(noop, onError));
} catch (error) {
onError(error);
} finally {
ReactCurrentBatchConfig.transition = prevTransition;
}
else
try {
scope();
} finally {
ReactCurrentBatchConfig.transition = prevTransition;
}
try {
var returnValue = scope();
"object" === typeof returnValue &&
null !== returnValue &&
"function" === typeof returnValue.then &&
(callbacks.forEach(function (callback) {
return callback(currentTransition, returnValue);
}),
returnValue.then(noop, onError));
} catch (error) {
onError(error);
} finally {
ReactCurrentBatchConfig.transition = prevTransition;
}
};
exports.unstable_Activity = REACT_OFFSCREEN_TYPE;
exports.unstable_Cache = REACT_CACHE_TYPE;
Expand Down Expand Up @@ -618,4 +610,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-www-modern-04e2d939";
exports.version = "18.3.0-www-modern-d2591625";
38 changes: 15 additions & 23 deletions compiled/facebook-www/React-profiling.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ pureComponentPrototype.isPureReactComponent = !0;
var isArrayImpl = Array.isArray,
dynamicFeatureFlags = require("ReactFeatureFlags"),
enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing,
enableAsyncActions = dynamicFeatureFlags.enableAsyncActions,
enableRenderableContext = dynamicFeatureFlags.enableRenderableContext,
hasOwnProperty = Object.prototype.hasOwnProperty,
ReactCurrentOwner$1 = { current: null };
Expand Down Expand Up @@ -522,27 +521,20 @@ exports.startTransition = function (scope, options) {
void 0 !== options.name &&
((ReactCurrentBatchConfig.transition.name = options.name),
(ReactCurrentBatchConfig.transition.startTime = -1));
if (enableAsyncActions)
try {
var returnValue = scope();
"object" === typeof returnValue &&
null !== returnValue &&
"function" === typeof returnValue.then &&
(callbacks.forEach(function (callback) {
return callback(currentTransition, returnValue);
}),
returnValue.then(noop, onError));
} catch (error) {
onError(error);
} finally {
ReactCurrentBatchConfig.transition = prevTransition;
}
else
try {
scope();
} finally {
ReactCurrentBatchConfig.transition = prevTransition;
}
try {
var returnValue = scope();
"object" === typeof returnValue &&
null !== returnValue &&
"function" === typeof returnValue.then &&
(callbacks.forEach(function (callback) {
return callback(currentTransition, returnValue);
}),
returnValue.then(noop, onError));
} catch (error) {
onError(error);
} finally {
ReactCurrentBatchConfig.transition = prevTransition;
}
};
exports.unstable_Activity = REACT_OFFSCREEN_TYPE;
exports.unstable_Cache = REACT_CACHE_TYPE;
Expand Down Expand Up @@ -630,7 +622,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-www-classic-0c80b4ef";
exports.version = "18.3.0-www-classic-49d2df34";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
38 changes: 15 additions & 23 deletions compiled/facebook-www/React-profiling.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ pureComponentPrototype.isPureReactComponent = !0;
var isArrayImpl = Array.isArray,
dynamicFeatureFlags = require("ReactFeatureFlags"),
enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing,
enableAsyncActions = dynamicFeatureFlags.enableAsyncActions,
enableRenderableContext = dynamicFeatureFlags.enableRenderableContext,
hasOwnProperty = Object.prototype.hasOwnProperty,
ReactCurrentOwner$1 = { current: null };
Expand Down Expand Up @@ -515,27 +514,20 @@ exports.startTransition = function (scope, options) {
void 0 !== options.name &&
((ReactCurrentBatchConfig.transition.name = options.name),
(ReactCurrentBatchConfig.transition.startTime = -1));
if (enableAsyncActions)
try {
var returnValue = scope();
"object" === typeof returnValue &&
null !== returnValue &&
"function" === typeof returnValue.then &&
(callbacks.forEach(function (callback) {
return callback(currentTransition, returnValue);
}),
returnValue.then(noop, onError));
} catch (error) {
onError(error);
} finally {
ReactCurrentBatchConfig.transition = prevTransition;
}
else
try {
scope();
} finally {
ReactCurrentBatchConfig.transition = prevTransition;
}
try {
var returnValue = scope();
"object" === typeof returnValue &&
null !== returnValue &&
"function" === typeof returnValue.then &&
(callbacks.forEach(function (callback) {
return callback(currentTransition, returnValue);
}),
returnValue.then(noop, onError));
} catch (error) {
onError(error);
} finally {
ReactCurrentBatchConfig.transition = prevTransition;
}
};
exports.unstable_Activity = REACT_OFFSCREEN_TYPE;
exports.unstable_Cache = REACT_CACHE_TYPE;
Expand Down Expand Up @@ -622,7 +614,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-www-modern-73e137c7";
exports.version = "18.3.0-www-modern-20701ea1";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
Loading

0 comments on commit 7b53202

Please sign in to comment.