Use the disableLegacyMode where ever we check the ConcurrentMode mode (#28657)

Saves some bytes and ensures that we're actually disabling it.

Turns out this flag wasn't disabling React Native/Fabric, React Noop and
React ART legacy modes so those are updated too.

Should be rebased on #28681.

DiffTrain build for [5de8703646](https://github.com/facebook/react/commit/5de8703646cdd3838cb1686f761b10c0692743aa)
This commit is contained in:
sebmarkbage
2024-04-03 01:12:10 +00:00
parent 8d925e23b7
commit 72e3e579fe
19 changed files with 274 additions and 150 deletions
+1 -1
View File
@@ -1 +1 @@
5998a775194f491afa5d3badd9afe9ceaf12845e
5de8703646cdd3838cb1686f761b10c0692743aa
+20 -7
View File
@@ -24,7 +24,7 @@ if (__DEV__) {
) {
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
}
var ReactVersion = "19.0.0-www-classic-c27d3e58";
var ReactVersion = "19.0.0-www-classic-279ec326";
// ATTENTION
// When adding new symbols to this file,
@@ -404,6 +404,7 @@ if (__DEV__) {
enableRenderableContext = dynamicFeatureFlags.enableRenderableContext,
enableRefAsProp = dynamicFeatureFlags.enableRefAsProp;
// On WWW, false is used for a new modern build.
var disableLegacyMode = false;
/*
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
@@ -3281,7 +3282,10 @@ if (__DEV__) {
// triggered during an async event, because this is how the legacy
// implementation of `act` behaved.
ReactCurrentActQueue.isBatchingLegacy = true;
{
ReactCurrentActQueue.isBatchingLegacy = true;
}
var result; // This tracks whether the `act` call is awaited. In certain cases, not
// awaiting it is a mistake, so we will detect that and warn.
@@ -3291,10 +3295,14 @@ if (__DEV__) {
// Reset this to `false` right before entering the React work loop. The
// only place we ever read this fields is just below, right after running
// the callback. So we don't need to reset after the callback runs.
ReactCurrentActQueue.didScheduleLegacyUpdate = false;
if (!disableLegacyMode) {
ReactCurrentActQueue.didScheduleLegacyUpdate = false;
}
result = callback();
var didScheduleLegacyUpdate =
ReactCurrentActQueue.didScheduleLegacyUpdate; // Replicate behavior of original `act` implementation in legacy mode,
var didScheduleLegacyUpdate = !disableLegacyMode
? ReactCurrentActQueue.didScheduleLegacyUpdate
: false; // Replicate behavior of original `act` implementation in legacy mode,
// which flushed updates immediately after the scope function exits, even
// if it's an async function.
@@ -3305,7 +3313,9 @@ if (__DEV__) {
// that's how it worked before version 18. Yes, it's confusing! We should
// delete legacy mode!!
ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
if (!disableLegacyMode) {
ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
}
} catch (error) {
// `isBatchingLegacy` gets reset using the regular stack, not the async
// one used to track `act` scopes. Why, you may be wondering? Because
@@ -3315,7 +3325,10 @@ if (__DEV__) {
}
if (ReactCurrentActQueue.thrownErrors.length > 0) {
ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
{
ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
}
popActScope(prevActQueue, prevActScopeDepth);
var thrownError = aggregateErrors(ReactCurrentActQueue.thrownErrors);
ReactCurrentActQueue.thrownErrors.length = 0;
+20 -7
View File
@@ -24,7 +24,7 @@ if (__DEV__) {
) {
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
}
var ReactVersion = "19.0.0-www-modern-5ccfe516";
var ReactVersion = "19.0.0-www-modern-e4b79a21";
// ATTENTION
// When adding new symbols to this file,
@@ -404,6 +404,7 @@ if (__DEV__) {
enableRenderableContext = dynamicFeatureFlags.enableRenderableContext,
enableRefAsProp = dynamicFeatureFlags.enableRefAsProp;
// On WWW, true is used for a new modern build.
var disableLegacyMode = false;
/*
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
@@ -3281,7 +3282,10 @@ if (__DEV__) {
// triggered during an async event, because this is how the legacy
// implementation of `act` behaved.
ReactCurrentActQueue.isBatchingLegacy = true;
{
ReactCurrentActQueue.isBatchingLegacy = true;
}
var result; // This tracks whether the `act` call is awaited. In certain cases, not
// awaiting it is a mistake, so we will detect that and warn.
@@ -3291,10 +3295,14 @@ if (__DEV__) {
// Reset this to `false` right before entering the React work loop. The
// only place we ever read this fields is just below, right after running
// the callback. So we don't need to reset after the callback runs.
ReactCurrentActQueue.didScheduleLegacyUpdate = false;
if (!disableLegacyMode) {
ReactCurrentActQueue.didScheduleLegacyUpdate = false;
}
result = callback();
var didScheduleLegacyUpdate =
ReactCurrentActQueue.didScheduleLegacyUpdate; // Replicate behavior of original `act` implementation in legacy mode,
var didScheduleLegacyUpdate = !disableLegacyMode
? ReactCurrentActQueue.didScheduleLegacyUpdate
: false; // Replicate behavior of original `act` implementation in legacy mode,
// which flushed updates immediately after the scope function exits, even
// if it's an async function.
@@ -3305,7 +3313,9 @@ if (__DEV__) {
// that's how it worked before version 18. Yes, it's confusing! We should
// delete legacy mode!!
ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
if (!disableLegacyMode) {
ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
}
} catch (error) {
// `isBatchingLegacy` gets reset using the regular stack, not the async
// one used to track `act` scopes. Why, you may be wondering? Because
@@ -3315,7 +3325,10 @@ if (__DEV__) {
}
if (ReactCurrentActQueue.thrownErrors.length > 0) {
ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
{
ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
}
popActScope(prevActQueue, prevActScopeDepth);
var thrownError = aggregateErrors(ReactCurrentActQueue.thrownErrors);
ReactCurrentActQueue.thrownErrors.length = 0;
+25 -13
View File
@@ -66,7 +66,7 @@ if (__DEV__) {
return self;
}
var ReactVersion = "19.0.0-www-classic-1a37f8de";
var ReactVersion = "19.0.0-www-classic-e7863b04";
var LegacyRoot = 0;
var ConcurrentRoot = 1;
@@ -195,6 +195,7 @@ if (__DEV__) {
var enableAsyncActions = true;
var enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler;
var disableLegacyMode = false;
var FunctionComponent = 0;
var ClassComponent = 1;
@@ -490,11 +491,15 @@ if (__DEV__) {
case TracingMarkerComponent:
return "TracingMarker";
// The display name for this tags come from the user-provided type:
// The display name for these tags come from the user-provided type:
case IncompleteClassComponent:
case IncompleteFunctionComponent:
// Fallthrough
case ClassComponent:
case FunctionComponent:
case IncompleteClassComponent:
case MemoComponent:
case SimpleMemoComponent:
if (typeof type === "function") {
@@ -4749,7 +4754,9 @@ if (__DEV__) {
function flushSyncWorkOnLegacyRootsOnly() {
// This is allowed to be called synchronously, but the caller should check
// the execution context first.
flushSyncWorkAcrossRoots_impl(true);
{
flushSyncWorkAcrossRoots_impl(true);
}
}
function flushSyncWorkAcrossRoots_impl(onlyLegacy) {
@@ -20490,10 +20497,11 @@ if (__DEV__) {
var newProps = workInProgress.pendingProps; // Note: This intentionally doesn't check if we're hydrating because comparing
switch (workInProgress.tag) {
case IncompleteFunctionComponent:
case LazyComponent:
case SimpleMemoComponent:
case FunctionComponent:
case IncompleteFunctionComponent:
case ForwardRef:
case Fragment:
case Mode:
@@ -20849,8 +20857,8 @@ if (__DEV__) {
return null;
case IncompleteClassComponent: {
// Same as class component case. I put it down here so that the tags are
// sequential to ensure this switch is compiled to a jump table.
var _Component = workInProgress.type;
if (isContextProvider(_Component)) {
@@ -26221,6 +26229,7 @@ if (__DEV__) {
if (
lane === SyncLane &&
executionContext === NoContext &&
!disableLegacyMode &&
(fiber.mode & ConcurrentMode) === NoMode
) {
if (ReactCurrentActQueue.isBatchingLegacy);
@@ -26789,6 +26798,7 @@ if (__DEV__) {
// next event, not at the end of the previous one.
if (
rootWithPendingPassiveEffects !== null &&
!disableLegacyMode &&
rootWithPendingPassiveEffects.tag === LegacyRoot &&
(executionContext & (RenderContext | CommitContext)) === NoContext
) {
@@ -30427,14 +30437,16 @@ if (__DEV__) {
}
{
switch (tag) {
case ConcurrentRoot:
this._debugRootType = hydrate ? "hydrateRoot()" : "createRoot()";
break;
{
switch (tag) {
case ConcurrentRoot:
this._debugRootType = hydrate ? "hydrateRoot()" : "createRoot()";
break;
case LegacyRoot:
this._debugRootType = hydrate ? "hydrate()" : "render()";
break;
case LegacyRoot:
this._debugRootType = hydrate ? "hydrate()" : "render()";
break;
}
}
}
}
+24 -12
View File
@@ -66,7 +66,7 @@ if (__DEV__) {
return self;
}
var ReactVersion = "19.0.0-www-modern-d5826a7d";
var ReactVersion = "19.0.0-www-modern-f0fe1a8a";
var LegacyRoot = 0;
var ConcurrentRoot = 1;
@@ -195,6 +195,7 @@ if (__DEV__) {
var enableAsyncActions = true;
var enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler;
var disableLegacyMode = false;
var FunctionComponent = 0;
var ClassComponent = 1;
@@ -490,11 +491,15 @@ if (__DEV__) {
case TracingMarkerComponent:
return "TracingMarker";
// The display name for this tags come from the user-provided type:
// The display name for these tags come from the user-provided type:
case IncompleteClassComponent:
case IncompleteFunctionComponent:
// Fallthrough
case ClassComponent:
case FunctionComponent:
case IncompleteClassComponent:
case MemoComponent:
case SimpleMemoComponent:
if (typeof type === "function") {
@@ -4514,7 +4519,9 @@ if (__DEV__) {
function flushSyncWorkOnLegacyRootsOnly() {
// This is allowed to be called synchronously, but the caller should check
// the execution context first.
flushSyncWorkAcrossRoots_impl(true);
{
flushSyncWorkAcrossRoots_impl(true);
}
}
function flushSyncWorkAcrossRoots_impl(onlyLegacy) {
@@ -20185,10 +20192,11 @@ if (__DEV__) {
var newProps = workInProgress.pendingProps; // Note: This intentionally doesn't check if we're hydrating because comparing
switch (workInProgress.tag) {
case IncompleteFunctionComponent:
case LazyComponent:
case SimpleMemoComponent:
case FunctionComponent:
case IncompleteFunctionComponent:
case ForwardRef:
case Fragment:
case Mode:
@@ -25887,6 +25895,7 @@ if (__DEV__) {
if (
lane === SyncLane &&
executionContext === NoContext &&
!disableLegacyMode &&
(fiber.mode & ConcurrentMode) === NoMode
) {
if (ReactCurrentActQueue.isBatchingLegacy);
@@ -26455,6 +26464,7 @@ if (__DEV__) {
// next event, not at the end of the previous one.
if (
rootWithPendingPassiveEffects !== null &&
!disableLegacyMode &&
rootWithPendingPassiveEffects.tag === LegacyRoot &&
(executionContext & (RenderContext | CommitContext)) === NoContext
) {
@@ -30084,14 +30094,16 @@ if (__DEV__) {
}
{
switch (tag) {
case ConcurrentRoot:
this._debugRootType = hydrate ? "hydrateRoot()" : "createRoot()";
break;
{
switch (tag) {
case ConcurrentRoot:
this._debugRootType = hydrate ? "hydrateRoot()" : "createRoot()";
break;
case LegacyRoot:
this._debugRootType = hydrate ? "hydrate()" : "render()";
break;
case LegacyRoot:
this._debugRootType = hydrate ? "hydrate()" : "render()";
break;
}
}
}
}
@@ -223,9 +223,10 @@ function getComponentNameFromFiber(fiber) {
return "SuspenseList";
case 25:
return "TracingMarker";
case 17:
case 28:
case 1:
case 0:
case 17:
case 14:
case 15:
if ("function" === typeof type)
@@ -6537,10 +6538,10 @@ function bubbleProperties(completedWork) {
function completeWork(current, workInProgress, renderLanes) {
var newProps = workInProgress.pendingProps;
switch (workInProgress.tag) {
case 28:
case 16:
case 15:
case 0:
case 28:
case 11:
case 7:
case 8:
@@ -10649,7 +10650,7 @@ var slice = Array.prototype.slice,
return null;
},
bundleType: 0,
version: "19.0.0-www-classic-da81c41b",
version: "19.0.0-www-classic-d150a248",
rendererPackageName: "react-art"
};
var internals$jscomp$inline_1308 = {
@@ -10680,7 +10681,7 @@ var internals$jscomp$inline_1308 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-da81c41b"
reconcilerVersion: "19.0.0-www-classic-d150a248"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1309 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -6276,10 +6276,10 @@ function bubbleProperties(completedWork) {
function completeWork(current, workInProgress, renderLanes) {
var newProps = workInProgress.pendingProps;
switch (workInProgress.tag) {
case 28:
case 16:
case 15:
case 0:
case 28:
case 11:
case 7:
case 8:
@@ -10325,7 +10325,7 @@ var slice = Array.prototype.slice,
return null;
},
bundleType: 0,
version: "19.0.0-www-modern-7cc92098",
version: "19.0.0-www-modern-7e9951a8",
rendererPackageName: "react-art"
};
var internals$jscomp$inline_1289 = {
@@ -10356,7 +10356,7 @@ var internals$jscomp$inline_1289 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-7cc92098"
reconcilerVersion: "19.0.0-www-modern-7e9951a8"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1290 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
+25 -13
View File
@@ -159,6 +159,7 @@ if (__DEV__) {
var enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler;
var enableSuspenseCallback = true;
var disableLegacyMode = false;
var FunctionComponent = 0;
var ClassComponent = 1;
@@ -454,11 +455,15 @@ if (__DEV__) {
case TracingMarkerComponent:
return "TracingMarker";
// The display name for this tags come from the user-provided type:
// The display name for these tags come from the user-provided type:
case IncompleteClassComponent:
case IncompleteFunctionComponent:
// Fallthrough
case ClassComponent:
case FunctionComponent:
case IncompleteClassComponent:
case MemoComponent:
case SimpleMemoComponent:
if (typeof type === "function") {
@@ -9664,7 +9669,9 @@ if (__DEV__) {
function flushSyncWorkOnLegacyRootsOnly() {
// This is allowed to be called synchronously, but the caller should check
// the execution context first.
flushSyncWorkAcrossRoots_impl(true);
{
flushSyncWorkAcrossRoots_impl(true);
}
}
function flushSyncWorkAcrossRoots_impl(onlyLegacy) {
@@ -25541,10 +25548,11 @@ if (__DEV__) {
popTreeContext(workInProgress);
switch (workInProgress.tag) {
case IncompleteFunctionComponent:
case LazyComponent:
case SimpleMemoComponent:
case FunctionComponent:
case IncompleteFunctionComponent:
case ForwardRef:
case Fragment:
case Mode:
@@ -26044,8 +26052,8 @@ if (__DEV__) {
return null;
case IncompleteClassComponent: {
// Same as class component case. I put it down here so that the tags are
// sequential to ensure this switch is compiled to a jump table.
var _Component = workInProgress.type;
if (isContextProvider(_Component)) {
@@ -31766,6 +31774,7 @@ if (__DEV__) {
if (
lane === SyncLane &&
executionContext === NoContext &&
!disableLegacyMode &&
(fiber.mode & ConcurrentMode) === NoMode
) {
if (ReactCurrentActQueue.isBatchingLegacy);
@@ -32406,6 +32415,7 @@ if (__DEV__) {
// next event, not at the end of the previous one.
if (
rootWithPendingPassiveEffects !== null &&
!disableLegacyMode &&
rootWithPendingPassiveEffects.tag === LegacyRoot &&
(executionContext & (RenderContext | CommitContext)) === NoContext
) {
@@ -36107,14 +36117,16 @@ if (__DEV__) {
}
{
switch (tag) {
case ConcurrentRoot:
this._debugRootType = hydrate ? "hydrateRoot()" : "createRoot()";
break;
{
switch (tag) {
case ConcurrentRoot:
this._debugRootType = hydrate ? "hydrateRoot()" : "createRoot()";
break;
case LegacyRoot:
this._debugRootType = hydrate ? "hydrate()" : "render()";
break;
case LegacyRoot:
this._debugRootType = hydrate ? "hydrate()" : "render()";
break;
}
}
}
}
@@ -36190,7 +36202,7 @@ if (__DEV__) {
return root;
}
var ReactVersion = "19.0.0-www-classic-7e51a591";
var ReactVersion = "19.0.0-www-classic-df8b8216";
function createPortal$1(
children,
+24 -12
View File
@@ -155,6 +155,7 @@ if (__DEV__) {
var enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler;
var enableSuspenseCallback = true;
var disableLegacyMode = false;
var assign = Object.assign;
@@ -3578,11 +3579,15 @@ if (__DEV__) {
case TracingMarkerComponent:
return "TracingMarker";
// The display name for this tags come from the user-provided type:
// The display name for these tags come from the user-provided type:
case IncompleteClassComponent:
case IncompleteFunctionComponent:
// Fallthrough
case ClassComponent:
case FunctionComponent:
case IncompleteClassComponent:
case MemoComponent:
case SimpleMemoComponent:
if (typeof type === "function") {
@@ -9627,7 +9632,9 @@ if (__DEV__) {
function flushSyncWorkOnLegacyRootsOnly() {
// This is allowed to be called synchronously, but the caller should check
// the execution context first.
flushSyncWorkAcrossRoots_impl(true);
{
flushSyncWorkAcrossRoots_impl(true);
}
}
function flushSyncWorkAcrossRoots_impl(onlyLegacy) {
@@ -25434,10 +25441,11 @@ if (__DEV__) {
popTreeContext(workInProgress);
switch (workInProgress.tag) {
case IncompleteFunctionComponent:
case LazyComponent:
case SimpleMemoComponent:
case FunctionComponent:
case IncompleteFunctionComponent:
case ForwardRef:
case Fragment:
case Mode:
@@ -31630,6 +31638,7 @@ if (__DEV__) {
if (
lane === SyncLane &&
executionContext === NoContext &&
!disableLegacyMode &&
(fiber.mode & ConcurrentMode) === NoMode
) {
if (ReactCurrentActQueue.isBatchingLegacy);
@@ -32270,6 +32279,7 @@ if (__DEV__) {
// next event, not at the end of the previous one.
if (
rootWithPendingPassiveEffects !== null &&
!disableLegacyMode &&
rootWithPendingPassiveEffects.tag === LegacyRoot &&
(executionContext & (RenderContext | CommitContext)) === NoContext
) {
@@ -35962,14 +35972,16 @@ if (__DEV__) {
}
{
switch (tag) {
case ConcurrentRoot:
this._debugRootType = hydrate ? "hydrateRoot()" : "createRoot()";
break;
{
switch (tag) {
case ConcurrentRoot:
this._debugRootType = hydrate ? "hydrateRoot()" : "createRoot()";
break;
case LegacyRoot:
this._debugRootType = hydrate ? "hydrate()" : "render()";
break;
case LegacyRoot:
this._debugRootType = hydrate ? "hydrate()" : "render()";
break;
}
}
}
}
@@ -36045,7 +36057,7 @@ if (__DEV__) {
return root;
}
var ReactVersion = "19.0.0-www-modern-cab6e9ae";
var ReactVersion = "19.0.0-www-modern-245ea3ab";
function createPortal$1(
children,
@@ -201,9 +201,10 @@ function getComponentNameFromFiber(fiber) {
return "SuspenseList";
case 25:
return "TracingMarker";
case 17:
case 28:
case 1:
case 0:
case 17:
case 14:
case 15:
if ("function" === typeof type)
@@ -7704,10 +7705,10 @@ function completeWork(current, workInProgress, renderLanes) {
var newProps = workInProgress.pendingProps;
popTreeContext(workInProgress);
switch (workInProgress.tag) {
case 28:
case 16:
case 15:
case 0:
case 28:
case 11:
case 7:
case 8:
@@ -17057,7 +17058,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1718 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-classic-fe506364",
version: "19.0.0-www-classic-f46425c1",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2143 = {
@@ -17087,7 +17088,7 @@ var internals$jscomp$inline_2143 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-fe506364"
reconcilerVersion: "19.0.0-www-classic-f46425c1"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2144 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17537,4 +17538,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactCurrentDispatcher$2.current.useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-fe506364";
exports.version = "19.0.0-www-classic-f46425c1";
@@ -7549,10 +7549,10 @@ function completeWork(current, workInProgress, renderLanes) {
var newProps = workInProgress.pendingProps;
popTreeContext(workInProgress);
switch (workInProgress.tag) {
case 28:
case 16:
case 15:
case 0:
case 28:
case 11:
case 7:
case 8:
@@ -16592,7 +16592,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1680 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-modern-efc3a4a0",
version: "19.0.0-www-modern-aaebddef",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2106 = {
@@ -16622,7 +16622,7 @@ var internals$jscomp$inline_2106 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-efc3a4a0"
reconcilerVersion: "19.0.0-www-modern-aaebddef"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2107 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -16925,4 +16925,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactCurrentDispatcher$2.current.useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-efc3a4a0";
exports.version = "19.0.0-www-modern-aaebddef";
@@ -206,9 +206,10 @@ function getComponentNameFromFiber(fiber) {
return "SuspenseList";
case 25:
return "TracingMarker";
case 17:
case 28:
case 1:
case 0:
case 17:
case 14:
case 15:
if ("function" === typeof type)
@@ -7988,10 +7989,10 @@ function completeWork(current, workInProgress, renderLanes) {
var newProps = workInProgress.pendingProps;
popTreeContext(workInProgress);
switch (workInProgress.tag) {
case 28:
case 16:
case 15:
case 0:
case 28:
case 11:
case 7:
case 8:
@@ -17805,7 +17806,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1804 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-classic-448692bf",
version: "19.0.0-www-classic-a76f386a",
rendererPackageName: "react-dom"
};
(function (internals) {
@@ -17849,7 +17850,7 @@ var devToolsConfig$jscomp$inline_1804 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-448692bf"
reconcilerVersion: "19.0.0-www-classic-a76f386a"
});
var ReactFiberErrorDialogWWW = require("ReactFiberErrorDialog");
if ("function" !== typeof ReactFiberErrorDialogWWW.showErrorDialog)
@@ -18286,7 +18287,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactCurrentDispatcher$2.current.useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-448692bf";
exports.version = "19.0.0-www-classic-a76f386a";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -7827,10 +7827,10 @@ function completeWork(current, workInProgress, renderLanes) {
var newProps = workInProgress.pendingProps;
popTreeContext(workInProgress);
switch (workInProgress.tag) {
case 28:
case 16:
case 15:
case 0:
case 28:
case 11:
case 7:
case 8:
@@ -17334,7 +17334,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1766 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-modern-affc19ee",
version: "19.0.0-www-modern-1c28c153",
rendererPackageName: "react-dom"
};
(function (internals) {
@@ -17378,7 +17378,7 @@ var devToolsConfig$jscomp$inline_1766 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-affc19ee"
reconcilerVersion: "19.0.0-www-modern-1c28c153"
});
var ReactFiberErrorDialogWWW = require("ReactFiberErrorDialog");
if ("function" !== typeof ReactFiberErrorDialogWWW.showErrorDialog)
@@ -17668,7 +17668,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactCurrentDispatcher$2.current.useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-affc19ee";
exports.version = "19.0.0-www-modern-1c28c153";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -151,6 +151,7 @@ if (__DEV__) {
var enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler;
var enableSuspenseCallback = true;
var disableLegacyMode = false;
var FunctionComponent = 0;
var ClassComponent = 1;
@@ -446,11 +447,15 @@ if (__DEV__) {
case TracingMarkerComponent:
return "TracingMarker";
// The display name for this tags come from the user-provided type:
// The display name for these tags come from the user-provided type:
case IncompleteClassComponent:
case IncompleteFunctionComponent:
// Fallthrough
case ClassComponent:
case FunctionComponent:
case IncompleteClassComponent:
case MemoComponent:
case SimpleMemoComponent:
if (typeof type === "function") {
@@ -9801,7 +9806,9 @@ if (__DEV__) {
function flushSyncWorkOnLegacyRootsOnly() {
// This is allowed to be called synchronously, but the caller should check
// the execution context first.
flushSyncWorkAcrossRoots_impl(true);
{
flushSyncWorkAcrossRoots_impl(true);
}
}
function flushSyncWorkAcrossRoots_impl(onlyLegacy) {
@@ -25678,10 +25685,11 @@ if (__DEV__) {
popTreeContext(workInProgress);
switch (workInProgress.tag) {
case IncompleteFunctionComponent:
case LazyComponent:
case SimpleMemoComponent:
case FunctionComponent:
case IncompleteFunctionComponent:
case ForwardRef:
case Fragment:
case Mode:
@@ -26181,8 +26189,8 @@ if (__DEV__) {
return null;
case IncompleteClassComponent: {
// Same as class component case. I put it down here so that the tags are
// sequential to ensure this switch is compiled to a jump table.
var _Component = workInProgress.type;
if (isContextProvider(_Component)) {
@@ -32390,6 +32398,7 @@ if (__DEV__) {
if (
lane === SyncLane &&
executionContext === NoContext &&
!disableLegacyMode &&
(fiber.mode & ConcurrentMode) === NoMode
) {
if (ReactCurrentActQueue.isBatchingLegacy);
@@ -33030,6 +33039,7 @@ if (__DEV__) {
// next event, not at the end of the previous one.
if (
rootWithPendingPassiveEffects !== null &&
!disableLegacyMode &&
rootWithPendingPassiveEffects.tag === LegacyRoot &&
(executionContext & (RenderContext | CommitContext)) === NoContext
) {
@@ -36731,14 +36741,16 @@ if (__DEV__) {
}
{
switch (tag) {
case ConcurrentRoot:
this._debugRootType = hydrate ? "hydrateRoot()" : "createRoot()";
break;
{
switch (tag) {
case ConcurrentRoot:
this._debugRootType = hydrate ? "hydrateRoot()" : "createRoot()";
break;
case LegacyRoot:
this._debugRootType = hydrate ? "hydrate()" : "render()";
break;
case LegacyRoot:
this._debugRootType = hydrate ? "hydrate()" : "render()";
break;
}
}
}
}
@@ -36814,7 +36826,7 @@ if (__DEV__) {
return root;
}
var ReactVersion = "19.0.0-www-classic-47215e9a";
var ReactVersion = "19.0.0-www-classic-71ca896f";
function createPortal$1(
children,
@@ -147,6 +147,7 @@ if (__DEV__) {
var enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler;
var enableSuspenseCallback = true;
var disableLegacyMode = false;
var assign = Object.assign;
@@ -3715,11 +3716,15 @@ if (__DEV__) {
case TracingMarkerComponent:
return "TracingMarker";
// The display name for this tags come from the user-provided type:
// The display name for these tags come from the user-provided type:
case IncompleteClassComponent:
case IncompleteFunctionComponent:
// Fallthrough
case ClassComponent:
case FunctionComponent:
case IncompleteClassComponent:
case MemoComponent:
case SimpleMemoComponent:
if (typeof type === "function") {
@@ -9764,7 +9769,9 @@ if (__DEV__) {
function flushSyncWorkOnLegacyRootsOnly() {
// This is allowed to be called synchronously, but the caller should check
// the execution context first.
flushSyncWorkAcrossRoots_impl(true);
{
flushSyncWorkAcrossRoots_impl(true);
}
}
function flushSyncWorkAcrossRoots_impl(onlyLegacy) {
@@ -25571,10 +25578,11 @@ if (__DEV__) {
popTreeContext(workInProgress);
switch (workInProgress.tag) {
case IncompleteFunctionComponent:
case LazyComponent:
case SimpleMemoComponent:
case FunctionComponent:
case IncompleteFunctionComponent:
case ForwardRef:
case Fragment:
case Mode:
@@ -32254,6 +32262,7 @@ if (__DEV__) {
if (
lane === SyncLane &&
executionContext === NoContext &&
!disableLegacyMode &&
(fiber.mode & ConcurrentMode) === NoMode
) {
if (ReactCurrentActQueue.isBatchingLegacy);
@@ -32894,6 +32903,7 @@ if (__DEV__) {
// next event, not at the end of the previous one.
if (
rootWithPendingPassiveEffects !== null &&
!disableLegacyMode &&
rootWithPendingPassiveEffects.tag === LegacyRoot &&
(executionContext & (RenderContext | CommitContext)) === NoContext
) {
@@ -36586,14 +36596,16 @@ if (__DEV__) {
}
{
switch (tag) {
case ConcurrentRoot:
this._debugRootType = hydrate ? "hydrateRoot()" : "createRoot()";
break;
{
switch (tag) {
case ConcurrentRoot:
this._debugRootType = hydrate ? "hydrateRoot()" : "createRoot()";
break;
case LegacyRoot:
this._debugRootType = hydrate ? "hydrate()" : "render()";
break;
case LegacyRoot:
this._debugRootType = hydrate ? "hydrate()" : "render()";
break;
}
}
}
}
@@ -36669,7 +36681,7 @@ if (__DEV__) {
return root;
}
var ReactVersion = "19.0.0-www-modern-7a34747a";
var ReactVersion = "19.0.0-www-modern-2a9ce9a7";
function createPortal$1(
children,
@@ -201,9 +201,10 @@ function getComponentNameFromFiber(fiber) {
return "SuspenseList";
case 25:
return "TracingMarker";
case 17:
case 28:
case 1:
case 0:
case 17:
case 14:
case 15:
if ("function" === typeof type)
@@ -7790,10 +7791,10 @@ function completeWork(current, workInProgress, renderLanes) {
var newProps = workInProgress.pendingProps;
popTreeContext(workInProgress);
switch (workInProgress.tag) {
case 28:
case 16:
case 15:
case 0:
case 28:
case 11:
case 7:
case 8:
@@ -17386,7 +17387,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1745 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-classic-a4f1494e",
version: "19.0.0-www-classic-029f2025",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2151 = {
@@ -17416,7 +17417,7 @@ var internals$jscomp$inline_2151 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-a4f1494e"
reconcilerVersion: "19.0.0-www-classic-029f2025"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2152 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -18009,4 +18010,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactCurrentDispatcher$2.current.useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-a4f1494e";
exports.version = "19.0.0-www-classic-029f2025";
@@ -7694,10 +7694,10 @@ function completeWork(current, workInProgress, renderLanes) {
var newProps = workInProgress.pendingProps;
popTreeContext(workInProgress);
switch (workInProgress.tag) {
case 28:
case 16:
case 15:
case 0:
case 28:
case 11:
case 7:
case 8:
@@ -16980,7 +16980,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1707 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-modern-efc491b3",
version: "19.0.0-www-modern-80d60d79",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2110 = {
@@ -17010,7 +17010,7 @@ var internals$jscomp$inline_2110 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-efc491b3"
reconcilerVersion: "19.0.0-www-modern-80d60d79"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2111 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17436,4 +17436,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactCurrentDispatcher$2.current.useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-efc491b3";
exports.version = "19.0.0-www-modern-80d60d79";
@@ -417,11 +417,15 @@ if (__DEV__) {
case TracingMarkerComponent:
return "TracingMarker";
// The display name for this tags come from the user-provided type:
// The display name for these tags come from the user-provided type:
case IncompleteClassComponent:
case IncompleteFunctionComponent:
// Fallthrough
case ClassComponent:
case FunctionComponent:
case IncompleteClassComponent:
case MemoComponent:
case SimpleMemoComponent:
if (typeof type === "function") {
@@ -3712,7 +3716,9 @@ if (__DEV__) {
function flushSyncWorkOnLegacyRootsOnly() {
// This is allowed to be called synchronously, but the caller should check
// the execution context first.
flushSyncWorkAcrossRoots_impl(true);
{
flushSyncWorkAcrossRoots_impl(true);
}
}
function flushSyncWorkAcrossRoots_impl(onlyLegacy) {
@@ -18121,10 +18127,11 @@ if (__DEV__) {
var newProps = workInProgress.pendingProps; // Note: This intentionally doesn't check if we're hydrating because comparing
switch (workInProgress.tag) {
case IncompleteFunctionComponent:
case LazyComponent:
case SimpleMemoComponent:
case FunctionComponent:
case IncompleteFunctionComponent:
case ForwardRef:
case Fragment:
case Mode:
@@ -18455,8 +18462,8 @@ if (__DEV__) {
return null;
case IncompleteClassComponent: {
// Same as class component case. I put it down here so that the tags are
// sequential to ensure this switch is compiled to a jump table.
var _Component = workInProgress.type;
if (isContextProvider(_Component)) {
@@ -22925,6 +22932,7 @@ if (__DEV__) {
if (
lane === SyncLane &&
executionContext === NoContext &&
!disableLegacyMode &&
(fiber.mode & ConcurrentMode) === NoMode
) {
if (ReactCurrentActQueue.isBatchingLegacy);
@@ -23485,6 +23493,7 @@ if (__DEV__) {
// next event, not at the end of the previous one.
if (
rootWithPendingPassiveEffects !== null &&
!disableLegacyMode &&
rootWithPendingPassiveEffects.tag === LegacyRoot &&
(executionContext & (RenderContext | CommitContext)) === NoContext
) {
@@ -26681,14 +26690,16 @@ if (__DEV__) {
}
{
switch (tag) {
case ConcurrentRoot:
this._debugRootType = hydrate ? "hydrateRoot()" : "createRoot()";
break;
{
switch (tag) {
case ConcurrentRoot:
this._debugRootType = hydrate ? "hydrateRoot()" : "createRoot()";
break;
case LegacyRoot:
this._debugRootType = hydrate ? "hydrate()" : "render()";
break;
case LegacyRoot:
this._debugRootType = hydrate ? "hydrate()" : "render()";
break;
}
}
}
}
@@ -26760,7 +26771,7 @@ if (__DEV__) {
return root;
}
var ReactVersion = "19.0.0-www-classic-ac0a3da0";
var ReactVersion = "19.0.0-www-classic-abfec648";
// Might add PROFILE later.
@@ -417,11 +417,15 @@ if (__DEV__) {
case TracingMarkerComponent:
return "TracingMarker";
// The display name for this tags come from the user-provided type:
// The display name for these tags come from the user-provided type:
case IncompleteClassComponent:
case IncompleteFunctionComponent:
// Fallthrough
case ClassComponent:
case FunctionComponent:
case IncompleteClassComponent:
case MemoComponent:
case SimpleMemoComponent:
if (typeof type === "function") {
@@ -3712,7 +3716,9 @@ if (__DEV__) {
function flushSyncWorkOnLegacyRootsOnly() {
// This is allowed to be called synchronously, but the caller should check
// the execution context first.
flushSyncWorkAcrossRoots_impl(true);
{
flushSyncWorkAcrossRoots_impl(true);
}
}
function flushSyncWorkAcrossRoots_impl(onlyLegacy) {
@@ -18121,10 +18127,11 @@ if (__DEV__) {
var newProps = workInProgress.pendingProps; // Note: This intentionally doesn't check if we're hydrating because comparing
switch (workInProgress.tag) {
case IncompleteFunctionComponent:
case LazyComponent:
case SimpleMemoComponent:
case FunctionComponent:
case IncompleteFunctionComponent:
case ForwardRef:
case Fragment:
case Mode:
@@ -18455,8 +18462,8 @@ if (__DEV__) {
return null;
case IncompleteClassComponent: {
// Same as class component case. I put it down here so that the tags are
// sequential to ensure this switch is compiled to a jump table.
var _Component = workInProgress.type;
if (isContextProvider(_Component)) {
@@ -22925,6 +22932,7 @@ if (__DEV__) {
if (
lane === SyncLane &&
executionContext === NoContext &&
!disableLegacyMode &&
(fiber.mode & ConcurrentMode) === NoMode
) {
if (ReactCurrentActQueue.isBatchingLegacy);
@@ -23485,6 +23493,7 @@ if (__DEV__) {
// next event, not at the end of the previous one.
if (
rootWithPendingPassiveEffects !== null &&
!disableLegacyMode &&
rootWithPendingPassiveEffects.tag === LegacyRoot &&
(executionContext & (RenderContext | CommitContext)) === NoContext
) {
@@ -26681,14 +26690,16 @@ if (__DEV__) {
}
{
switch (tag) {
case ConcurrentRoot:
this._debugRootType = hydrate ? "hydrateRoot()" : "createRoot()";
break;
{
switch (tag) {
case ConcurrentRoot:
this._debugRootType = hydrate ? "hydrateRoot()" : "createRoot()";
break;
case LegacyRoot:
this._debugRootType = hydrate ? "hydrate()" : "render()";
break;
case LegacyRoot:
this._debugRootType = hydrate ? "hydrate()" : "render()";
break;
}
}
}
}
@@ -26760,7 +26771,7 @@ if (__DEV__) {
return root;
}
var ReactVersion = "19.0.0-www-modern-ac0a3da0";
var ReactVersion = "19.0.0-www-modern-abfec648";
// Might add PROFILE later.