[Fiber] clarify entry condition for suspensey commit recursion (#29222)

Previously Suspensey recursion would only trigger if the
ShouldSuspendCommit flag was true. However there is a dependence on the
Visibility flag embedded in this logic because these flags share a bit.
To make it clear that the semantics of Suspensey resources require
considering both flags I've added it to the condition even though this
extra or-ing is a noop when the bit is shared

DiffTrain build for [f55d172bcf](https://github.com/facebook/react/commit/f55d172bcf921d761733533395b798c5b3665e04)
This commit is contained in:
gnoff
2024-05-23 20:59:50 +00:00
parent e574453c80
commit fe342b1c85
21 changed files with 239 additions and 199 deletions
+1 -1
View File
@@ -1 +1 @@
84239da896fd7395a667ab1e7ef1ef338a32de8f
f55d172bcf921d761733533395b798c5b3665e04
@@ -60,7 +60,7 @@ function _assertThisInitialized(self) {
return self;
}
var ReactVersion = '19.0.0-www-classic-7d4c9d5a';
var ReactVersion = '19.0.0-www-classic-df6992f9';
var LegacyRoot = 0;
var ConcurrentRoot = 1;
@@ -22696,7 +22696,10 @@ function finishConcurrentRender(root, exitStatus, finishedWork, lanes) {
function commitRootWhenReady(root, finishedWork, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane) {
// TODO: Combine retry throttling with Suspensey commits. Right now they run
// one after the other.
if (finishedWork.subtreeFlags & ShouldSuspendCommit) {
var BothVisibilityAndMaySuspendCommit = Visibility | MaySuspendCommit;
var subtreeFlags = finishedWork.subtreeFlags;
if (subtreeFlags & ShouldSuspendCommit || (subtreeFlags & BothVisibilityAndMaySuspendCommit) === BothVisibilityAndMaySuspendCommit) {
// the suspensey resources. The renderer is responsible for accumulating
// all the load events. This all happens in a single synchronous
// transaction, so it track state in its own module scope.
+5 -2
View File
@@ -60,7 +60,7 @@ function _assertThisInitialized(self) {
return self;
}
var ReactVersion = '19.0.0-www-modern-4793f209';
var ReactVersion = '19.0.0-www-modern-e0053f93';
var LegacyRoot = 0;
var ConcurrentRoot = 1;
@@ -22055,7 +22055,10 @@ function finishConcurrentRender(root, exitStatus, finishedWork, lanes) {
function commitRootWhenReady(root, finishedWork, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane) {
// TODO: Combine retry throttling with Suspensey commits. Right now they run
// one after the other.
if (finishedWork.subtreeFlags & ShouldSuspendCommit) {
var BothVisibilityAndMaySuspendCommit = Visibility | MaySuspendCommit;
var subtreeFlags = finishedWork.subtreeFlags;
if (subtreeFlags & ShouldSuspendCommit || (subtreeFlags & BothVisibilityAndMaySuspendCommit) === BothVisibilityAndMaySuspendCommit) {
// the suspensey resources. The renderer is responsible for accumulating
// all the load events. This all happens in a single synchronous
// transaction, so it track state in its own module scope.
@@ -9263,7 +9263,8 @@ function commitRootWhenReady(
lanes,
spawnedLane
) {
finishedWork.subtreeFlags & 8192 &&
lanes = finishedWork.subtreeFlags;
(lanes & 8192 || 16785408 === (lanes & 16785408)) &&
accumulateSuspenseyCommitOnFiber(finishedWork);
commitRoot(
root,
@@ -10648,7 +10649,7 @@ var slice = Array.prototype.slice,
return null;
},
bundleType: 0,
version: "19.0.0-www-classic-5df18b01",
version: "19.0.0-www-classic-aee192a3",
rendererPackageName: "react-art"
};
var internals$jscomp$inline_1358 = {
@@ -10679,7 +10680,7 @@ var internals$jscomp$inline_1358 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-5df18b01"
reconcilerVersion: "19.0.0-www-classic-aee192a3"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1359 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -8787,7 +8787,8 @@ function commitRootWhenReady(
lanes,
spawnedLane
) {
finishedWork.subtreeFlags & 8192 &&
lanes = finishedWork.subtreeFlags;
(lanes & 8192 || 16785408 === (lanes & 16785408)) &&
accumulateSuspenseyCommitOnFiber(finishedWork);
commitRoot(
root,
@@ -10123,7 +10124,7 @@ var slice = Array.prototype.slice,
return null;
},
bundleType: 0,
version: "19.0.0-www-modern-0d2856c7",
version: "19.0.0-www-modern-4c2dd93a",
rendererPackageName: "react-art"
};
var internals$jscomp$inline_1345 = {
@@ -10154,7 +10155,7 @@ var internals$jscomp$inline_1345 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-0d2856c7"
reconcilerVersion: "19.0.0-www-modern-4c2dd93a"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1346 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -27325,7 +27325,10 @@ function finishConcurrentRender(root, exitStatus, finishedWork, lanes) {
function commitRootWhenReady(root, finishedWork, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane) {
// TODO: Combine retry throttling with Suspensey commits. Right now they run
// one after the other.
if (finishedWork.subtreeFlags & ShouldSuspendCommit) {
var BothVisibilityAndMaySuspendCommit = Visibility | MaySuspendCommit;
var subtreeFlags = finishedWork.subtreeFlags;
if (subtreeFlags & ShouldSuspendCommit || (subtreeFlags & BothVisibilityAndMaySuspendCommit) === BothVisibilityAndMaySuspendCommit) {
// Before committing, ask the renderer whether the host tree is ready.
// If it's not, we'll wait until it notifies us.
startSuspendingCommit(); // This will walk the completed fiber tree and attach listeners to all
@@ -30996,7 +30999,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
return root;
}
var ReactVersion = '19.0.0-www-classic-6cb291b1';
var ReactVersion = '19.0.0-www-classic-16ee3628';
function createPortal$1(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
implementation) {
+5 -2
View File
@@ -26631,7 +26631,10 @@ function finishConcurrentRender(root, exitStatus, finishedWork, lanes) {
function commitRootWhenReady(root, finishedWork, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane) {
// TODO: Combine retry throttling with Suspensey commits. Right now they run
// one after the other.
if (finishedWork.subtreeFlags & ShouldSuspendCommit) {
var BothVisibilityAndMaySuspendCommit = Visibility | MaySuspendCommit;
var subtreeFlags = finishedWork.subtreeFlags;
if (subtreeFlags & ShouldSuspendCommit || (subtreeFlags & BothVisibilityAndMaySuspendCommit) === BothVisibilityAndMaySuspendCommit) {
// Before committing, ask the renderer whether the host tree is ready.
// If it's not, we'll wait until it notifies us.
startSuspendingCommit(); // This will walk the completed fiber tree and attach listeners to all
@@ -30171,7 +30174,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
return root;
}
var ReactVersion = '19.0.0-www-modern-4d273f8e';
var ReactVersion = '19.0.0-www-modern-f5ea7daf';
function createPortal$1(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
implementation) {
+23 -22
View File
@@ -11074,25 +11074,26 @@ function commitRootWhenReady(
lanes,
spawnedLane
) {
if (
finishedWork.subtreeFlags & 8192 &&
((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }),
accumulateSuspenseyCommitOnFiber(finishedWork),
(finishedWork = waitForCommitToBeReady()),
null !== finishedWork)
) {
root.cancelPendingCommit = finishedWork(
commitRoot.bind(
null,
root,
recoverableErrors,
transitions,
didIncludeRenderPhaseUpdate
)
);
markRootSuspended(root, lanes, spawnedLane);
return;
}
var subtreeFlags = finishedWork.subtreeFlags;
if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408))
if (
((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }),
accumulateSuspenseyCommitOnFiber(finishedWork),
(finishedWork = waitForCommitToBeReady()),
null !== finishedWork)
) {
root.cancelPendingCommit = finishedWork(
commitRoot.bind(
null,
root,
recoverableErrors,
transitions,
didIncludeRenderPhaseUpdate
)
);
markRootSuspended(root, lanes, spawnedLane);
return;
}
commitRoot(
root,
recoverableErrors,
@@ -17069,7 +17070,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1746 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-classic-824db2c5",
version: "19.0.0-www-classic-a0e0535d",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2190 = {
@@ -17099,7 +17100,7 @@ var internals$jscomp$inline_2190 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-824db2c5"
reconcilerVersion: "19.0.0-www-classic-a0e0535d"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2191 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17603,4 +17604,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-824db2c5";
exports.version = "19.0.0-www-classic-a0e0535d";
+23 -22
View File
@@ -10569,25 +10569,26 @@ function commitRootWhenReady(
lanes,
spawnedLane
) {
if (
finishedWork.subtreeFlags & 8192 &&
((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }),
accumulateSuspenseyCommitOnFiber(finishedWork),
(finishedWork = waitForCommitToBeReady()),
null !== finishedWork)
) {
root.cancelPendingCommit = finishedWork(
commitRoot.bind(
null,
root,
recoverableErrors,
transitions,
didIncludeRenderPhaseUpdate
)
);
markRootSuspended(root, lanes, spawnedLane);
return;
}
var subtreeFlags = finishedWork.subtreeFlags;
if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408))
if (
((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }),
accumulateSuspenseyCommitOnFiber(finishedWork),
(finishedWork = waitForCommitToBeReady()),
null !== finishedWork)
) {
root.cancelPendingCommit = finishedWork(
commitRoot.bind(
null,
root,
recoverableErrors,
transitions,
didIncludeRenderPhaseUpdate
)
);
markRootSuspended(root, lanes, spawnedLane);
return;
}
commitRoot(
root,
recoverableErrors,
@@ -16432,7 +16433,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1713 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-modern-3717c12a",
version: "19.0.0-www-modern-33a180b8",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2182 = {
@@ -16462,7 +16463,7 @@ var internals$jscomp$inline_2182 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-3717c12a"
reconcilerVersion: "19.0.0-www-modern-33a180b8"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2183 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -16836,4 +16837,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-3717c12a";
exports.version = "19.0.0-www-modern-33a180b8";
@@ -11667,25 +11667,26 @@ function commitRootWhenReady(
lanes,
spawnedLane
) {
if (
finishedWork.subtreeFlags & 8192 &&
((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }),
accumulateSuspenseyCommitOnFiber(finishedWork),
(finishedWork = waitForCommitToBeReady()),
null !== finishedWork)
) {
root.cancelPendingCommit = finishedWork(
commitRoot.bind(
null,
root,
recoverableErrors,
transitions,
didIncludeRenderPhaseUpdate
)
);
markRootSuspended(root, lanes, spawnedLane);
return;
}
var subtreeFlags = finishedWork.subtreeFlags;
if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408))
if (
((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }),
accumulateSuspenseyCommitOnFiber(finishedWork),
(finishedWork = waitForCommitToBeReady()),
null !== finishedWork)
) {
root.cancelPendingCommit = finishedWork(
commitRoot.bind(
null,
root,
recoverableErrors,
transitions,
didIncludeRenderPhaseUpdate
)
);
markRootSuspended(root, lanes, spawnedLane);
return;
}
commitRoot(
root,
recoverableErrors,
@@ -17833,7 +17834,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1832 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-classic-2c907cc2",
version: "19.0.0-www-classic-643b8964",
rendererPackageName: "react-dom"
};
(function (internals) {
@@ -17877,7 +17878,7 @@ var devToolsConfig$jscomp$inline_1832 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-2c907cc2"
reconcilerVersion: "19.0.0-www-classic-643b8964"
});
function ReactDOMRoot(internalRoot) {
this._internalRoot = internalRoot;
@@ -18368,7 +18369,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-2c907cc2";
exports.version = "19.0.0-www-classic-643b8964";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -11145,25 +11145,26 @@ function commitRootWhenReady(
lanes,
spawnedLane
) {
if (
finishedWork.subtreeFlags & 8192 &&
((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }),
accumulateSuspenseyCommitOnFiber(finishedWork),
(finishedWork = waitForCommitToBeReady()),
null !== finishedWork)
) {
root.cancelPendingCommit = finishedWork(
commitRoot.bind(
null,
root,
recoverableErrors,
transitions,
didIncludeRenderPhaseUpdate
)
);
markRootSuspended(root, lanes, spawnedLane);
return;
}
var subtreeFlags = finishedWork.subtreeFlags;
if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408))
if (
((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }),
accumulateSuspenseyCommitOnFiber(finishedWork),
(finishedWork = waitForCommitToBeReady()),
null !== finishedWork)
) {
root.cancelPendingCommit = finishedWork(
commitRoot.bind(
null,
root,
recoverableErrors,
transitions,
didIncludeRenderPhaseUpdate
)
);
markRootSuspended(root, lanes, spawnedLane);
return;
}
commitRoot(
root,
recoverableErrors,
@@ -17179,7 +17180,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1799 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-modern-c13878e0",
version: "19.0.0-www-modern-261a4fd2",
rendererPackageName: "react-dom"
};
(function (internals) {
@@ -17223,7 +17224,7 @@ var devToolsConfig$jscomp$inline_1799 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-c13878e0"
reconcilerVersion: "19.0.0-www-modern-261a4fd2"
});
function ReactDOMRoot(internalRoot) {
this._internalRoot = internalRoot;
@@ -17584,7 +17585,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-c13878e0";
exports.version = "19.0.0-www-modern-261a4fd2";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -27891,7 +27891,10 @@ function finishConcurrentRender(root, exitStatus, finishedWork, lanes) {
function commitRootWhenReady(root, finishedWork, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane) {
// TODO: Combine retry throttling with Suspensey commits. Right now they run
// one after the other.
if (finishedWork.subtreeFlags & ShouldSuspendCommit) {
var BothVisibilityAndMaySuspendCommit = Visibility | MaySuspendCommit;
var subtreeFlags = finishedWork.subtreeFlags;
if (subtreeFlags & ShouldSuspendCommit || (subtreeFlags & BothVisibilityAndMaySuspendCommit) === BothVisibilityAndMaySuspendCommit) {
// Before committing, ask the renderer whether the host tree is ready.
// If it's not, we'll wait until it notifies us.
startSuspendingCommit(); // This will walk the completed fiber tree and attach listeners to all
@@ -31562,7 +31565,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
return root;
}
var ReactVersion = '19.0.0-www-classic-8d698026';
var ReactVersion = '19.0.0-www-classic-fa9aeb29';
function createPortal$1(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
implementation) {
@@ -27197,7 +27197,10 @@ function finishConcurrentRender(root, exitStatus, finishedWork, lanes) {
function commitRootWhenReady(root, finishedWork, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane) {
// TODO: Combine retry throttling with Suspensey commits. Right now they run
// one after the other.
if (finishedWork.subtreeFlags & ShouldSuspendCommit) {
var BothVisibilityAndMaySuspendCommit = Visibility | MaySuspendCommit;
var subtreeFlags = finishedWork.subtreeFlags;
if (subtreeFlags & ShouldSuspendCommit || (subtreeFlags & BothVisibilityAndMaySuspendCommit) === BothVisibilityAndMaySuspendCommit) {
// Before committing, ask the renderer whether the host tree is ready.
// If it's not, we'll wait until it notifies us.
startSuspendingCommit(); // This will walk the completed fiber tree and attach listeners to all
@@ -30737,7 +30740,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
return root;
}
var ReactVersion = '19.0.0-www-modern-862feb58';
var ReactVersion = '19.0.0-www-modern-87db12a9';
function createPortal$1(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
implementation) {
@@ -11346,25 +11346,26 @@ function commitRootWhenReady(
lanes,
spawnedLane
) {
if (
finishedWork.subtreeFlags & 8192 &&
((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }),
accumulateSuspenseyCommitOnFiber(finishedWork),
(finishedWork = waitForCommitToBeReady()),
null !== finishedWork)
) {
root.cancelPendingCommit = finishedWork(
commitRoot.bind(
null,
root,
recoverableErrors,
transitions,
didIncludeRenderPhaseUpdate
)
);
markRootSuspended(root, lanes, spawnedLane);
return;
}
var subtreeFlags = finishedWork.subtreeFlags;
if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408))
if (
((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }),
accumulateSuspenseyCommitOnFiber(finishedWork),
(finishedWork = waitForCommitToBeReady()),
null !== finishedWork)
) {
root.cancelPendingCommit = finishedWork(
commitRoot.bind(
null,
root,
recoverableErrors,
transitions,
didIncludeRenderPhaseUpdate
)
);
markRootSuspended(root, lanes, spawnedLane);
return;
}
commitRoot(
root,
recoverableErrors,
@@ -17398,7 +17399,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1776 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-classic-5fe02461",
version: "19.0.0-www-classic-9e4355d6",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2225 = {
@@ -17428,7 +17429,7 @@ var internals$jscomp$inline_2225 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-5fe02461"
reconcilerVersion: "19.0.0-www-classic-9e4355d6"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2226 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -18083,4 +18084,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-5fe02461";
exports.version = "19.0.0-www-classic-9e4355d6";
@@ -10900,25 +10900,26 @@ function commitRootWhenReady(
lanes,
spawnedLane
) {
if (
finishedWork.subtreeFlags & 8192 &&
((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }),
accumulateSuspenseyCommitOnFiber(finishedWork),
(finishedWork = waitForCommitToBeReady()),
null !== finishedWork)
) {
root.cancelPendingCommit = finishedWork(
commitRoot.bind(
null,
root,
recoverableErrors,
transitions,
didIncludeRenderPhaseUpdate
)
);
markRootSuspended(root, lanes, spawnedLane);
return;
}
var subtreeFlags = finishedWork.subtreeFlags;
if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408))
if (
((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }),
accumulateSuspenseyCommitOnFiber(finishedWork),
(finishedWork = waitForCommitToBeReady()),
null !== finishedWork)
) {
root.cancelPendingCommit = finishedWork(
commitRoot.bind(
null,
root,
recoverableErrors,
transitions,
didIncludeRenderPhaseUpdate
)
);
markRootSuspended(root, lanes, spawnedLane);
return;
}
commitRoot(
root,
recoverableErrors,
@@ -16820,7 +16821,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1743 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-modern-03570e44",
version: "19.0.0-www-modern-a9ff0c5d",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2217 = {
@@ -16850,7 +16851,7 @@ var internals$jscomp$inline_2217 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-03570e44"
reconcilerVersion: "19.0.0-www-modern-a9ff0c5d"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2218 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17375,4 +17376,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-03570e44";
exports.version = "19.0.0-www-modern-a9ff0c5d";
@@ -25085,7 +25085,10 @@ function finishConcurrentRender(root, exitStatus, finishedWork, lanes) {
function commitRootWhenReady(root, finishedWork, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane) {
// TODO: Combine retry throttling with Suspensey commits. Right now they run
// one after the other.
if (finishedWork.subtreeFlags & ShouldSuspendCommit) {
var BothVisibilityAndMaySuspendCommit = Visibility | MaySuspendCommit;
var subtreeFlags = finishedWork.subtreeFlags;
if (subtreeFlags & ShouldSuspendCommit || (subtreeFlags & BothVisibilityAndMaySuspendCommit) === BothVisibilityAndMaySuspendCommit) {
// Before committing, ask the renderer whether the host tree is ready.
// If it's not, we'll wait until it notifies us.
startSuspendingCommit(); // This will walk the completed fiber tree and attach listeners to all
@@ -28794,7 +28797,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
return root;
}
var ReactVersion = '19.0.0-www-classic-287510b9';
var ReactVersion = '19.0.0-www-classic-2e0a93db';
/*
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
@@ -24444,7 +24444,10 @@ function finishConcurrentRender(root, exitStatus, finishedWork, lanes) {
function commitRootWhenReady(root, finishedWork, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane) {
// TODO: Combine retry throttling with Suspensey commits. Right now they run
// one after the other.
if (finishedWork.subtreeFlags & ShouldSuspendCommit) {
var BothVisibilityAndMaySuspendCommit = Visibility | MaySuspendCommit;
var subtreeFlags = finishedWork.subtreeFlags;
if (subtreeFlags & ShouldSuspendCommit || (subtreeFlags & BothVisibilityAndMaySuspendCommit) === BothVisibilityAndMaySuspendCommit) {
// Before committing, ask the renderer whether the host tree is ready.
// If it's not, we'll wait until it notifies us.
startSuspendingCommit(); // This will walk the completed fiber tree and attach listeners to all
@@ -28060,7 +28063,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
return root;
}
var ReactVersion = '19.0.0-www-modern-09c6ebdb';
var ReactVersion = '19.0.0-www-modern-8a76092c';
/*
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
@@ -10053,25 +10053,26 @@ module.exports = function ($$$config) {
lanes,
spawnedLane
) {
if (
finishedWork.subtreeFlags & 8192 &&
(startSuspendingCommit(),
accumulateSuspenseyCommitOnFiber(finishedWork),
(finishedWork = waitForCommitToBeReady()),
null !== finishedWork)
) {
root.cancelPendingCommit = finishedWork(
commitRoot.bind(
null,
root,
recoverableErrors,
transitions,
didIncludeRenderPhaseUpdate
)
);
markRootSuspended(root, lanes, spawnedLane);
return;
}
var subtreeFlags = finishedWork.subtreeFlags;
if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408))
if (
(startSuspendingCommit(),
accumulateSuspenseyCommitOnFiber(finishedWork),
(finishedWork = waitForCommitToBeReady()),
null !== finishedWork)
) {
root.cancelPendingCommit = finishedWork(
commitRoot.bind(
null,
root,
recoverableErrors,
transitions,
didIncludeRenderPhaseUpdate
)
);
markRootSuspended(root, lanes, spawnedLane);
return;
}
commitRoot(
root,
recoverableErrors,
@@ -12645,7 +12646,7 @@ module.exports = function ($$$config) {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-16207949"
reconcilerVersion: "19.0.0-www-classic-1be1baa9"
};
if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)
devToolsConfig = !1;
@@ -9624,25 +9624,26 @@ module.exports = function ($$$config) {
lanes,
spawnedLane
) {
if (
finishedWork.subtreeFlags & 8192 &&
(startSuspendingCommit(),
accumulateSuspenseyCommitOnFiber(finishedWork),
(finishedWork = waitForCommitToBeReady()),
null !== finishedWork)
) {
root.cancelPendingCommit = finishedWork(
commitRoot.bind(
null,
root,
recoverableErrors,
transitions,
didIncludeRenderPhaseUpdate
)
);
markRootSuspended(root, lanes, spawnedLane);
return;
}
var subtreeFlags = finishedWork.subtreeFlags;
if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408))
if (
(startSuspendingCommit(),
accumulateSuspenseyCommitOnFiber(finishedWork),
(finishedWork = waitForCommitToBeReady()),
null !== finishedWork)
) {
root.cancelPendingCommit = finishedWork(
commitRoot.bind(
null,
root,
recoverableErrors,
transitions,
didIncludeRenderPhaseUpdate
)
);
markRootSuspended(root, lanes, spawnedLane);
return;
}
commitRoot(
root,
recoverableErrors,
@@ -12158,7 +12159,7 @@ module.exports = function ($$$config) {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-d82cd544"
reconcilerVersion: "19.0.0-www-modern-b311bf05"
};
if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)
devToolsConfig = !1;
@@ -20085,7 +20085,10 @@ function finishConcurrentRender(root, exitStatus, finishedWork, lanes) {
function commitRootWhenReady(root, finishedWork, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane) {
// TODO: Combine retry throttling with Suspensey commits. Right now they run
// one after the other.
if (finishedWork.subtreeFlags & ShouldSuspendCommit) {
var BothVisibilityAndMaySuspendCommit = Visibility | MaySuspendCommit;
var subtreeFlags = finishedWork.subtreeFlags;
if (subtreeFlags & ShouldSuspendCommit || (subtreeFlags & BothVisibilityAndMaySuspendCommit) === BothVisibilityAndMaySuspendCommit) {
// the suspensey resources. The renderer is responsible for accumulating
// all the load events. This all happens in a single synchronous
// transaction, so it track state in its own module scope.
@@ -23274,7 +23277,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
return root;
}
var ReactVersion = '19.0.0-www-classic-d66ba86c';
var ReactVersion = '19.0.0-www-classic-20bcb906';
/*
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
@@ -20085,7 +20085,10 @@ function finishConcurrentRender(root, exitStatus, finishedWork, lanes) {
function commitRootWhenReady(root, finishedWork, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane) {
// TODO: Combine retry throttling with Suspensey commits. Right now they run
// one after the other.
if (finishedWork.subtreeFlags & ShouldSuspendCommit) {
var BothVisibilityAndMaySuspendCommit = Visibility | MaySuspendCommit;
var subtreeFlags = finishedWork.subtreeFlags;
if (subtreeFlags & ShouldSuspendCommit || (subtreeFlags & BothVisibilityAndMaySuspendCommit) === BothVisibilityAndMaySuspendCommit) {
// the suspensey resources. The renderer is responsible for accumulating
// all the load events. This all happens in a single synchronous
// transaction, so it track state in its own module scope.
@@ -23274,7 +23277,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
return root;
}
var ReactVersion = '19.0.0-www-modern-d66ba86c';
var ReactVersion = '19.0.0-www-modern-20bcb906';
/*
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol