GeezerVison is showing github.com — Land enableAsyncActions enableFormActions in www (#28315) · react/react@7b53202
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboard +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -14fd9630ee04387f4361da289393234e2b7d93b6 | | 1 | +5d445b50a670d6cdc52943ca4e5ab3422792c57c |
Collapse file Copy file name to clipboardExpand all lines: compiled/facebook-www/React-dev.classic.js +2-12Lines changed: 2 additions & 12 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -24,7 +24,7 @@ if (__DEV__) { | 24 | 24 | ) { | 25 | 25 | __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); | 26 | 26 | } | 27 | | - var ReactVersion = "18.3.0-www-classic-38e30556"; | | 27 | + var ReactVersion = "18.3.0-www-classic-77190284"; | 28 | 28 |
| 29 | 29 | // ATTENTION | 30 | 30 | // When adding new symbols to this file, | @@ -475,7 +475,6 @@ if (__DEV__) { | 475 | 475 |
| 476 | 476 | var enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, | 477 | 477 | enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, | 478 | | - enableAsyncActions = dynamicFeatureFlags.enableAsyncActions, | 479 | 478 | enableRenderableContext = dynamicFeatureFlags.enableRenderableContext; // On WWW, false is used for a new modern build. | 480 | 479 |
| 481 | 480 | function getWrappedName(outerType, innerType, wrapperName) { | @@ -3024,7 +3023,7 @@ if (__DEV__) { | 3024 | 3023 | } | 3025 | 3024 | } | 3026 | 3025 |
| 3027 | | - if (enableAsyncActions) { | | 3026 | + { | 3028 | 3027 | try { | 3029 | 3028 | var returnValue = scope(); | 3030 | 3029 |
| @@ -3044,15 +3043,6 @@ if (__DEV__) { | 3044 | 3043 | warnAboutTransitionSubscriptions(prevTransition, currentTransition); | 3045 | 3044 | ReactCurrentBatchConfig.transition = prevTransition; | 3046 | 3045 | } | 3047 | | - } else { | 3048 | | - // When async actions are not enabled, startTransition does not | 3049 | | - // capture errors. | 3050 | | - try { | 3051 | | - scope(); | 3052 | | - } finally { | 3053 | | - warnAboutTransitionSubscriptions(prevTransition, currentTransition); | 3054 | | - ReactCurrentBatchConfig.transition = prevTransition; | 3055 | | - } | 3056 | 3046 | } | 3057 | 3047 | } | 3058 | 3048 |
| |
Collapse file Copy file name to clipboardExpand all lines: compiled/facebook-www/React-dev.modern.js +2-12Lines changed: 2 additions & 12 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -24,7 +24,7 @@ if (__DEV__) { | 24 | 24 | ) { | 25 | 25 | __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); | 26 | 26 | } | 27 | | - var ReactVersion = "18.3.0-www-modern-f32f96e5"; | | 27 | + var ReactVersion = "18.3.0-www-modern-5d2c8ee0"; | 28 | 28 |
| 29 | 29 | // ATTENTION | 30 | 30 | // When adding new symbols to this file, | @@ -475,7 +475,6 @@ if (__DEV__) { | 475 | 475 |
| 476 | 476 | var enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, | 477 | 477 | enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, | 478 | | - enableAsyncActions = dynamicFeatureFlags.enableAsyncActions, | 479 | 478 | enableRenderableContext = dynamicFeatureFlags.enableRenderableContext; // On WWW, true is used for a new modern build. | 480 | 479 |
| 481 | 480 | function getWrappedName(outerType, innerType, wrapperName) { | @@ -2989,7 +2988,7 @@ if (__DEV__) { | 2989 | 2988 | } | 2990 | 2989 | } | 2991 | 2990 |
| 2992 | | - if (enableAsyncActions) { | | 2991 | + { | 2993 | 2992 | try { | 2994 | 2993 | var returnValue = scope(); | 2995 | 2994 |
| @@ -3009,15 +3008,6 @@ if (__DEV__) { | 3009 | 3008 | warnAboutTransitionSubscriptions(prevTransition, currentTransition); | 3010 | 3009 | ReactCurrentBatchConfig.transition = prevTransition; | 3011 | 3010 | } | 3012 | | - } else { | 3013 | | - // When async actions are not enabled, startTransition does not | 3014 | | - // capture errors. | 3015 | | - try { | 3016 | | - scope(); | 3017 | | - } finally { | 3018 | | - warnAboutTransitionSubscriptions(prevTransition, currentTransition); | 3019 | | - ReactCurrentBatchConfig.transition = prevTransition; | 3020 | | - } | 3021 | 3011 | } | 3022 | 3012 | } | 3023 | 3013 |
| |
Collapse file Copy file name to clipboardExpand all lines: compiled/facebook-www/React-prod.classic.js +15-23Lines changed: 15 additions & 23 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -84,7 +84,6 @@ pureComponentPrototype.isPureReactComponent = !0; | 84 | 84 | var isArrayImpl = Array.isArray, | 85 | 85 | dynamicFeatureFlags = require("ReactFeatureFlags"), | 86 | 86 | enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, | 87 | | - enableAsyncActions = dynamicFeatureFlags.enableAsyncActions, | 88 | 87 | enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, | 89 | 88 | hasOwnProperty = Object.prototype.hasOwnProperty, | 90 | 89 | ReactCurrentOwner$1 = { current: null }; | @@ -518,27 +517,20 @@ exports.startTransition = function (scope, options) { | 518 | 517 | void 0 !== options.name && | 519 | 518 | ((ReactCurrentBatchConfig.transition.name = options.name), | 520 | 519 | (ReactCurrentBatchConfig.transition.startTime = -1)); | 521 | | - if (enableAsyncActions) | 522 | | - try { | 523 | | - var returnValue = scope(); | 524 | | - "object" === typeof returnValue && | 525 | | - null !== returnValue && | 526 | | - "function" === typeof returnValue.then && | 527 | | - (callbacks.forEach(function (callback) { | 528 | | - return callback(currentTransition, returnValue); | 529 | | - }), | 530 | | - returnValue.then(noop, onError)); | 531 | | - } catch (error) { | 532 | | - onError(error); | 533 | | - } finally { | 534 | | - ReactCurrentBatchConfig.transition = prevTransition; | 535 | | - } | 536 | | - else | 537 | | - try { | 538 | | - scope(); | 539 | | - } finally { | 540 | | - ReactCurrentBatchConfig.transition = prevTransition; | 541 | | - } | | 520 | + try { | | 521 | + var returnValue = scope(); | | 522 | + "object" === typeof returnValue && | | 523 | + null !== returnValue && | | 524 | + "function" === typeof returnValue.then && | | 525 | + (callbacks.forEach(function (callback) { | | 526 | + return callback(currentTransition, returnValue); | | 527 | + }), | | 528 | + returnValue.then(noop, onError)); | | 529 | + } catch (error) { | | 530 | + onError(error); | | 531 | + } finally { | | 532 | + ReactCurrentBatchConfig.transition = prevTransition; | | 533 | + } | 542 | 534 | }; | 543 | 535 | exports.unstable_Activity = REACT_OFFSCREEN_TYPE; | 544 | 536 | exports.unstable_Cache = REACT_CACHE_TYPE; | @@ -626,4 +618,4 @@ exports.useSyncExternalStore = function ( | 626 | 618 | exports.useTransition = function () { | 627 | 619 | return ReactCurrentDispatcher.current.useTransition(); | 628 | 620 | }; | 629 | | -exports.version = "18.3.0-www-classic-25a61d97"; | | 621 | +exports.version = "18.3.0-www-classic-a886996f"; |
Collapse file Copy file name to clipboardExpand all lines: compiled/facebook-www/React-prod.modern.js +15-23Lines changed: 15 additions & 23 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -83,7 +83,6 @@ pureComponentPrototype.isPureReactComponent = !0; | 83 | 83 | var isArrayImpl = Array.isArray, | 84 | 84 | dynamicFeatureFlags = require("ReactFeatureFlags"), | 85 | 85 | enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, | 86 | | - enableAsyncActions = dynamicFeatureFlags.enableAsyncActions, | 87 | 86 | enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, | 88 | 87 | hasOwnProperty = Object.prototype.hasOwnProperty, | 89 | 88 | ReactCurrentOwner$1 = { current: null }; | @@ -511,27 +510,20 @@ exports.startTransition = function (scope, options) { | 511 | 510 | void 0 !== options.name && | 512 | 511 | ((ReactCurrentBatchConfig.transition.name = options.name), | 513 | 512 | (ReactCurrentBatchConfig.transition.startTime = -1)); | 514 | | - if (enableAsyncActions) | 515 | | - try { | 516 | | - var returnValue = scope(); | 517 | | - "object" === typeof returnValue && | 518 | | - null !== returnValue && | 519 | | - "function" === typeof returnValue.then && | 520 | | - (callbacks.forEach(function (callback) { | 521 | | - return callback(currentTransition, returnValue); | 522 | | - }), | 523 | | - returnValue.then(noop, onError)); | 524 | | - } catch (error) { | 525 | | - onError(error); | 526 | | - } finally { | 527 | | - ReactCurrentBatchConfig.transition = prevTransition; | 528 | | - } | 529 | | - else | 530 | | - try { | 531 | | - scope(); | 532 | | - } finally { | 533 | | - ReactCurrentBatchConfig.transition = prevTransition; | 534 | | - } | | 513 | + try { | | 514 | + var returnValue = scope(); | | 515 | + "object" === typeof returnValue && | | 516 | + null !== returnValue && | | 517 | + "function" === typeof returnValue.then && | | 518 | + (callbacks.forEach(function (callback) { | | 519 | + return callback(currentTransition, returnValue); | | 520 | + }), | | 521 | + returnValue.then(noop, onError)); | | 522 | + } catch (error) { | | 523 | + onError(error); | | 524 | + } finally { | | 525 | + ReactCurrentBatchConfig.transition = prevTransition; | | 526 | + } | 535 | 527 | }; | 536 | 528 | exports.unstable_Activity = REACT_OFFSCREEN_TYPE; | 537 | 529 | exports.unstable_Cache = REACT_CACHE_TYPE; | @@ -618,4 +610,4 @@ exports.useSyncExternalStore = function ( | 618 | 610 | exports.useTransition = function () { | 619 | 611 | return ReactCurrentDispatcher.current.useTransition(); | 620 | 612 | }; | 621 | | -exports.version = "18.3.0-www-modern-04e2d939"; | | 613 | +exports.version = "18.3.0-www-modern-d2591625"; |
Collapse file Copy file name to clipboardExpand all lines: compiled/facebook-www/React-profiling.classic.js +15-23Lines changed: 15 additions & 23 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -88,7 +88,6 @@ pureComponentPrototype.isPureReactComponent = !0; | 88 | 88 | var isArrayImpl = Array.isArray, | 89 | 89 | dynamicFeatureFlags = require("ReactFeatureFlags"), | 90 | 90 | enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, | 91 | | - enableAsyncActions = dynamicFeatureFlags.enableAsyncActions, | 92 | 91 | enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, | 93 | 92 | hasOwnProperty = Object.prototype.hasOwnProperty, | 94 | 93 | ReactCurrentOwner$1 = { current: null }; | @@ -522,27 +521,20 @@ exports.startTransition = function (scope, options) { | 522 | 521 | void 0 !== options.name && | 523 | 522 | ((ReactCurrentBatchConfig.transition.name = options.name), | 524 | 523 | (ReactCurrentBatchConfig.transition.startTime = -1)); | 525 | | - if (enableAsyncActions) | 526 | | - try { | 527 | | - var returnValue = scope(); | 528 | | - "object" === typeof returnValue && | 529 | | - null !== returnValue && | 530 | | - "function" === typeof returnValue.then && | 531 | | - (callbacks.forEach(function (callback) { | 532 | | - return callback(currentTransition, returnValue); | 533 | | - }), | 534 | | - returnValue.then(noop, onError)); | 535 | | - } catch (error) { | 536 | | - onError(error); | 537 | | - } finally { | 538 | | - ReactCurrentBatchConfig.transition = prevTransition; | 539 | | - } | 540 | | - else | 541 | | - try { | 542 | | - scope(); | 543 | | - } finally { | 544 | | - ReactCurrentBatchConfig.transition = prevTransition; | 545 | | - } | | 524 | + try { | | 525 | + var returnValue = scope(); | | 526 | + "object" === typeof returnValue && | | 527 | + null !== returnValue && | | 528 | + "function" === typeof returnValue.then && | | 529 | + (callbacks.forEach(function (callback) { | | 530 | + return callback(currentTransition, returnValue); | | 531 | + }), | | 532 | + returnValue.then(noop, onError)); | | 533 | + } catch (error) { | | 534 | + onError(error); | | 535 | + } finally { | | 536 | + ReactCurrentBatchConfig.transition = prevTransition; | | 537 | + } | 546 | 538 | }; | 547 | 539 | exports.unstable_Activity = REACT_OFFSCREEN_TYPE; | 548 | 540 | exports.unstable_Cache = REACT_CACHE_TYPE; | @@ -630,7 +622,7 @@ exports.useSyncExternalStore = function ( | 630 | 622 | exports.useTransition = function () { | 631 | 623 | return ReactCurrentDispatcher.current.useTransition(); | 632 | 624 | }; | 633 | | -exports.version = "18.3.0-www-classic-0c80b4ef"; | | 625 | +exports.version = "18.3.0-www-classic-49d2df34"; | 634 | 626 | "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && | 635 | 627 | "function" === | 636 | 628 | typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && | |
Collapse file Copy file name to clipboardExpand all lines: compiled/facebook-www/React-profiling.modern.js +15-23Lines changed: 15 additions & 23 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -87,7 +87,6 @@ pureComponentPrototype.isPureReactComponent = !0; | 87 | 87 | var isArrayImpl = Array.isArray, | 88 | 88 | dynamicFeatureFlags = require("ReactFeatureFlags"), | 89 | 89 | enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, | 90 | | - enableAsyncActions = dynamicFeatureFlags.enableAsyncActions, | 91 | 90 | enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, | 92 | 91 | hasOwnProperty = Object.prototype.hasOwnProperty, | 93 | 92 | ReactCurrentOwner$1 = { current: null }; | @@ -515,27 +514,20 @@ exports.startTransition = function (scope, options) { | 515 | 514 | void 0 !== options.name && | 516 | 515 | ((ReactCurrentBatchConfig.transition.name = options.name), | 517 | 516 | (ReactCurrentBatchConfig.transition.startTime = -1)); | 518 | | - if (enableAsyncActions) | 519 | | - try { | 520 | | - var returnValue = scope(); | 521 | | - "object" === typeof returnValue && | 522 | | - null !== returnValue && | 523 | | - "function" === typeof returnValue.then && | 524 | | - (callbacks.forEach(function (callback) { | 525 | | - return callback(currentTransition, returnValue); | 526 | | - }), | 527 | | - returnValue.then(noop, onError)); | 528 | | - } catch (error) { | 529 | | - onError(error); | 530 | | - } finally { | 531 | | - ReactCurrentBatchConfig.transition = prevTransition; | 532 | | - } | 533 | | - else | 534 | | - try { | 535 | | - scope(); | 536 | | - } finally { | 537 | | - ReactCurrentBatchConfig.transition = prevTransition; | 538 | | - } | | 517 | + try { | | 518 | + var returnValue = scope(); | | 519 | + "object" === typeof returnValue && | | 520 | + null !== returnValue && | | 521 | + "function" === typeof returnValue.then && | | 522 | + (callbacks.forEach(function (callback) { | | 523 | + return callback(currentTransition, returnValue); | | 524 | + }), | | 525 | + returnValue.then(noop, onError)); | | 526 | + } catch (error) { | | 527 | + onError(error); | | 528 | + } finally { | | 529 | + ReactCurrentBatchConfig.transition = prevTransition; | | 530 | + } | 539 | 531 | }; | 540 | 532 | exports.unstable_Activity = REACT_OFFSCREEN_TYPE; | 541 | 533 | exports.unstable_Cache = REACT_CACHE_TYPE; | @@ -622,7 +614,7 @@ exports.useSyncExternalStore = function ( | 622 | 614 | exports.useTransition = function () { | 623 | 615 | return ReactCurrentDispatcher.current.useTransition(); | 624 | 616 | }; | 625 | | -exports.version = "18.3.0-www-modern-73e137c7"; | | 617 | +exports.version = "18.3.0-www-modern-20701ea1"; | 626 | 618 | "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && | 627 | 619 | "function" === | 628 | 620 | typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && | |
|