[Fizz] Start initial work immediately (#31079)

In a recent update we make Flight start working immediately rather than
waitin for a new task. This commit updates fizz to have similar
mechanics. We start the render in the currently running task but we do
so in a microtask to avoid reentrancy. This aligns Fizz with Flight.

ref: https://github.com/facebook/react/pull/30961

DiffTrain build for [67fee58b1f](https://github.com/facebook/react/commit/67fee58b1f72754cc77488c40c44e786572ef954)
This commit is contained in:
gnoff
2024-09-26 13:59:31 -07:00
parent b113f683d4
commit e2de2adf75
34 changed files with 248 additions and 242 deletions
+1 -1
View File
@@ -2000,7 +2000,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.0.0-www-classic-76aee6f3-20240926";
exports.version = "19.0.0-www-classic-67fee58b-20240926";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+1 -1
View File
@@ -1980,7 +1980,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.0.0-www-modern-76aee6f3-20240926";
exports.version = "19.0.0-www-modern-67fee58b-20240926";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+1 -1
View File
@@ -665,4 +665,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-classic-76aee6f3-20240926";
exports.version = "19.0.0-www-classic-67fee58b-20240926";
+1 -1
View File
@@ -665,4 +665,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-modern-76aee6f3-20240926";
exports.version = "19.0.0-www-modern-67fee58b-20240926";
@@ -669,7 +669,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-classic-76aee6f3-20240926";
exports.version = "19.0.0-www-classic-67fee58b-20240926";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -669,7 +669,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-modern-76aee6f3-20240926";
exports.version = "19.0.0-www-modern-67fee58b-20240926";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -17014,11 +17014,11 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.0.0-www-classic-76aee6f3-20240926",
version: "19.0.0-www-classic-67fee58b-20240926",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getInstanceFromNode,
reconcilerVersion: "19.0.0-www-classic-76aee6f3-20240926"
reconcilerVersion: "19.0.0-www-classic-67fee58b-20240926"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -17052,7 +17052,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.0.0-www-classic-76aee6f3-20240926";
exports.version = "19.0.0-www-classic-67fee58b-20240926";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+3 -3
View File
@@ -16457,11 +16457,11 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.0.0-www-modern-76aee6f3-20240926",
version: "19.0.0-www-modern-67fee58b-20240926",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getInstanceFromNode,
reconcilerVersion: "19.0.0-www-modern-76aee6f3-20240926"
reconcilerVersion: "19.0.0-www-modern-67fee58b-20240926"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -16495,7 +16495,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.0.0-www-modern-76aee6f3-20240926";
exports.version = "19.0.0-www-modern-67fee58b-20240926";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -10826,13 +10826,13 @@ var slice = Array.prototype.slice,
})(React.Component);
var internals$jscomp$inline_1467 = {
bundleType: 0,
version: "19.0.0-www-classic-76aee6f3-20240926",
version: "19.0.0-www-classic-67fee58b-20240926",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: function () {
return null;
},
reconcilerVersion: "19.0.0-www-classic-76aee6f3-20240926"
reconcilerVersion: "19.0.0-www-classic-67fee58b-20240926"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1468 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -10858,4 +10858,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.0.0-www-classic-76aee6f3-20240926";
exports.version = "19.0.0-www-classic-67fee58b-20240926";
@@ -10337,13 +10337,13 @@ var slice = Array.prototype.slice,
})(React.Component);
var internals$jscomp$inline_1459 = {
bundleType: 0,
version: "19.0.0-www-modern-76aee6f3-20240926",
version: "19.0.0-www-modern-67fee58b-20240926",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: function () {
return null;
},
reconcilerVersion: "19.0.0-www-modern-76aee6f3-20240926"
reconcilerVersion: "19.0.0-www-modern-67fee58b-20240926"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1460 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -10369,4 +10369,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.0.0-www-modern-76aee6f3-20240926";
exports.version = "19.0.0-www-modern-67fee58b-20240926";
@@ -27771,11 +27771,11 @@ __DEV__ &&
: flushSyncErrorInBuildsThatSupportLegacyMode;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-www-classic-76aee6f3-20240926" !== isomorphicReactPackageVersion)
if ("19.0.0-www-classic-67fee58b-20240926" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.0.0-www-classic-76aee6f3-20240926\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.0.0-www-classic-67fee58b-20240926\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -27819,11 +27819,11 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.0.0-www-classic-76aee6f3-20240926",
version: "19.0.0-www-classic-67fee58b-20240926",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-www-classic-76aee6f3-20240926"
reconcilerVersion: "19.0.0-www-classic-67fee58b-20240926"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -28476,7 +28476,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-76aee6f3-20240926";
exports.version = "19.0.0-www-classic-67fee58b-20240926";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+5 -5
View File
@@ -26885,11 +26885,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-www-modern-76aee6f3-20240926" !== isomorphicReactPackageVersion)
if ("19.0.0-www-modern-67fee58b-20240926" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.0.0-www-modern-76aee6f3-20240926\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.0.0-www-modern-67fee58b-20240926\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -26932,11 +26932,11 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.0.0-www-modern-76aee6f3-20240926",
version: "19.0.0-www-modern-67fee58b-20240926",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-www-modern-76aee6f3-20240926"
reconcilerVersion: "19.0.0-www-modern-67fee58b-20240926"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -27541,7 +27541,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-76aee6f3-20240926";
exports.version = "19.0.0-www-modern-67fee58b-20240926";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -17412,14 +17412,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1774 = React.version;
if (
"19.0.0-www-classic-76aee6f3-20240926" !==
"19.0.0-www-classic-67fee58b-20240926" !==
isomorphicReactPackageVersion$jscomp$inline_1774
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1774,
"19.0.0-www-classic-76aee6f3-20240926"
"19.0.0-www-classic-67fee58b-20240926"
)
);
function flushSyncFromReconciler(fn) {
@@ -17464,11 +17464,11 @@ Internals.Events = [
];
var internals$jscomp$inline_2287 = {
bundleType: 0,
version: "19.0.0-www-classic-76aee6f3-20240926",
version: "19.0.0-www-classic-67fee58b-20240926",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-www-classic-76aee6f3-20240926"
reconcilerVersion: "19.0.0-www-classic-67fee58b-20240926"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2288 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17924,4 +17924,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-76aee6f3-20240926";
exports.version = "19.0.0-www-classic-67fee58b-20240926";
@@ -16780,14 +16780,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1745 = React.version;
if (
"19.0.0-www-modern-76aee6f3-20240926" !==
"19.0.0-www-modern-67fee58b-20240926" !==
isomorphicReactPackageVersion$jscomp$inline_1745
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1745,
"19.0.0-www-modern-76aee6f3-20240926"
"19.0.0-www-modern-67fee58b-20240926"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -16805,11 +16805,11 @@ Internals.Events = [
];
var internals$jscomp$inline_2278 = {
bundleType: 0,
version: "19.0.0-www-modern-76aee6f3-20240926",
version: "19.0.0-www-modern-67fee58b-20240926",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-www-modern-76aee6f3-20240926"
reconcilerVersion: "19.0.0-www-modern-67fee58b-20240926"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2279 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17172,4 +17172,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-76aee6f3-20240926";
exports.version = "19.0.0-www-modern-67fee58b-20240926";
@@ -18137,14 +18137,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1867 = React.version;
if (
"19.0.0-www-classic-76aee6f3-20240926" !==
"19.0.0-www-classic-67fee58b-20240926" !==
isomorphicReactPackageVersion$jscomp$inline_1867
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1867,
"19.0.0-www-classic-76aee6f3-20240926"
"19.0.0-www-classic-67fee58b-20240926"
)
);
function flushSyncFromReconciler(fn) {
@@ -18189,11 +18189,11 @@ Internals.Events = [
];
var internals$jscomp$inline_1874 = {
bundleType: 0,
version: "19.0.0-www-classic-76aee6f3-20240926",
version: "19.0.0-www-classic-67fee58b-20240926",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-www-classic-76aee6f3-20240926"
reconcilerVersion: "19.0.0-www-classic-67fee58b-20240926"
};
enableSchedulingProfiler &&
((internals$jscomp$inline_1874.getLaneLabelMap = getLaneLabelMap),
@@ -18652,7 +18652,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-76aee6f3-20240926";
exports.version = "19.0.0-www-classic-67fee58b-20240926";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -17488,14 +17488,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1838 = React.version;
if (
"19.0.0-www-modern-76aee6f3-20240926" !==
"19.0.0-www-modern-67fee58b-20240926" !==
isomorphicReactPackageVersion$jscomp$inline_1838
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1838,
"19.0.0-www-modern-76aee6f3-20240926"
"19.0.0-www-modern-67fee58b-20240926"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -17513,11 +17513,11 @@ Internals.Events = [
];
var internals$jscomp$inline_1840 = {
bundleType: 0,
version: "19.0.0-www-modern-76aee6f3-20240926",
version: "19.0.0-www-modern-67fee58b-20240926",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-www-modern-76aee6f3-20240926"
reconcilerVersion: "19.0.0-www-modern-67fee58b-20240926"
};
enableSchedulingProfiler &&
((internals$jscomp$inline_1840.getLaneLabelMap = getLaneLabelMap),
@@ -17883,7 +17883,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-76aee6f3-20240926";
exports.version = "19.0.0-www-modern-67fee58b-20240926";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -4355,7 +4355,7 @@ __DEV__ &&
this.rootFormatContext = rootFormatContext;
this.progressiveChunkSize =
void 0 === progressiveChunkSize ? 12800 : progressiveChunkSize;
this.status = 0;
this.status = 10;
this.fatalError = null;
this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
this.completedRootSegment = null;
@@ -4663,7 +4663,7 @@ __DEV__ &&
onFatalError(error);
null !== request.destination
? ((request.status = CLOSED), request.destination.destroy(error))
: ((request.status = 2), (request.fatalError = error));
: ((request.status = 13), (request.fatalError = error));
}
function renderWithHooks(
request,
@@ -5185,7 +5185,7 @@ __DEV__ &&
} else internalInstance.queue = null;
}
var nextChildren = callRenderInDEV(instance);
if (1 === request.status) throw null;
if (12 === request.status) throw null;
instance.props !== resolvedProps &&
(didWarnAboutReassigningProps ||
error$jscomp$2(
@@ -5253,7 +5253,7 @@ __DEV__ &&
props,
legacyContext
);
if (1 === request.status) throw null;
if (12 === request.status) throw null;
var hasId = 0 !== localIdCounter,
actionStateCount = actionStateCounter,
actionStateMatchingIndex$jscomp$0 = actionStateMatchingIndex;
@@ -5496,7 +5496,7 @@ __DEV__ &&
(boundarySegment.status = COMPLETED);
} catch (thrownValue) {
throw (
((boundarySegment.status = 1 === request.status ? 3 : 4),
((boundarySegment.status = 12 === request.status ? 3 : 4),
thrownValue)
);
} finally {
@@ -5547,7 +5547,7 @@ __DEV__ &&
}
} catch (thrownValue$2) {
newBoundary.status = CLIENT_RENDERED;
if (1 === request.status) {
if (12 === request.status) {
contentRootSegment.status = 3;
var error = request.fatalError;
} else
@@ -5670,7 +5670,7 @@ __DEV__ &&
}
case REACT_LAZY_TYPE:
var Component = callLazyInitInDEV(type);
if (1 === request.status) throw null;
if (12 === request.status) throw null;
var resolvedProps$jscomp$1 =
resolveDefaultPropsOnNonClassComponent(Component, props);
renderElement(
@@ -5915,7 +5915,7 @@ __DEV__ &&
);
case REACT_LAZY_TYPE:
node = callLazyInitInDEV(node);
if (1 === request.status) throw null;
if (12 === request.status) throw null;
renderNodeDestructive(request, task, node, childIndex);
return;
}
@@ -6441,7 +6441,7 @@ __DEV__ &&
}
segment = getThrownInfo(task.componentStack);
if (null === boundary) {
if (2 !== request.status && request.status !== CLOSED) {
if (13 !== request.status && request.status !== CLOSED) {
boundary = task.replay;
if (null === boundary) {
logRecoverableError(request, error, segment);
@@ -6617,7 +6617,10 @@ __DEV__ &&
0 === request.allPendingTasks && completeAll(request);
}
function performWork(request$jscomp$1) {
if (request$jscomp$1.status !== CLOSED && 2 !== request$jscomp$1.status) {
if (
request$jscomp$1.status !== CLOSED &&
13 !== request$jscomp$1.status
) {
var prevContext = currentActiveSnapshot,
prevDispatcher = ReactSharedInternals.H;
ReactSharedInternals.H = HooksDispatcher;
@@ -6685,7 +6688,7 @@ __DEV__ &&
erroredReplay(
request$jscomp$0,
request.blockedBoundary,
1 === request$jscomp$0.status
12 === request$jscomp$0.status
? request$jscomp$0.fatalError
: x,
errorInfo,
@@ -6736,7 +6739,7 @@ __DEV__ &&
var x$jscomp$0 =
thrownValue === SuspenseException
? getSuspendedThenable()
: 1 === request.status
: 12 === request.status
? request.fatalError
: thrownValue;
if (
@@ -7402,10 +7405,10 @@ __DEV__ &&
}
function startWork(request) {
request.flushScheduled = null !== request.destination;
null !== request.trackedPostpones
? performWork(request)
: (performWork(request),
safelyEmitEarlyPreloads(request, 0 === request.pendingRootTasks));
performWork(request);
10 === request.status && (request.status = 11);
null === request.trackedPostpones &&
safelyEmitEarlyPreloads(request, 0 === request.pendingRootTasks);
}
function enqueueFlush(request) {
if (
@@ -7421,7 +7424,7 @@ __DEV__ &&
}
}
function startFlowing(request, destination) {
if (2 === request.status)
if (13 === request.status)
(request.status = CLOSED), destination.destroy(request.fatalError);
else if (request.status !== CLOSED && null === request.destination) {
request.destination = destination;
@@ -7434,7 +7437,7 @@ __DEV__ &&
}
}
function abort(request, reason) {
0 === request.status && (request.status = 1);
if (11 === request.status || 10 === request.status) request.status = 12;
try {
var abortableTasks = request.abortableTasks;
if (0 < abortableTasks.size) {
@@ -8958,7 +8961,7 @@ __DEV__ &&
COMPLETED = 1,
FLUSHED = 2,
POSTPONED = 5,
CLOSED = 3,
CLOSED = 14,
currentRequest = null,
didWarnAboutBadClass = {},
didWarnAboutContextTypes = {},
@@ -8984,5 +8987,5 @@ __DEV__ &&
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.0.0-www-classic-76aee6f3-20240926";
exports.version = "19.0.0-www-classic-67fee58b-20240926";
})();
@@ -4347,7 +4347,7 @@ __DEV__ &&
this.rootFormatContext = rootFormatContext;
this.progressiveChunkSize =
void 0 === progressiveChunkSize ? 12800 : progressiveChunkSize;
this.status = 0;
this.status = 10;
this.fatalError = null;
this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
this.completedRootSegment = null;
@@ -4650,7 +4650,7 @@ __DEV__ &&
onFatalError(error);
null !== request.destination
? ((request.status = CLOSED), request.destination.destroy(error))
: ((request.status = 2), (request.fatalError = error));
: ((request.status = 13), (request.fatalError = error));
}
function renderWithHooks(
request,
@@ -5112,7 +5112,7 @@ __DEV__ &&
}
else defaultProps.queue = null;
defaultProps = callRenderInDEV(newProps);
if (1 === request.status) throw null;
if (12 === request.status) throw null;
newProps.props !== props &&
(didWarnAboutReassigningProps ||
error$jscomp$2(
@@ -5136,7 +5136,7 @@ __DEV__ &&
),
(didWarnAboutBadClass[newProps] = !0)));
props = renderWithHooks(request, task, keyPath, type, props, void 0);
if (1 === request.status) throw null;
if (12 === request.status) throw null;
newProps = 0 !== localIdCounter;
defaultProps = actionStateCounter;
addendum = actionStateMatchingIndex;
@@ -5353,7 +5353,7 @@ __DEV__ &&
(boundarySegment.status = COMPLETED);
} catch (thrownValue) {
throw (
((boundarySegment.status = 1 === request.status ? 3 : 4),
((boundarySegment.status = 12 === request.status ? 3 : 4),
thrownValue)
);
} finally {
@@ -5401,7 +5401,7 @@ __DEV__ &&
}
} catch (thrownValue$2) {
(propName.status = CLIENT_RENDERED),
1 === request.status
12 === request.status
? ((contentRootSegment.status = 3),
(newProps = request.fatalError))
: ((contentRootSegment.status = 4),
@@ -5509,7 +5509,7 @@ __DEV__ &&
}
case REACT_LAZY_TYPE:
type = callLazyInitInDEV(type);
if (1 === request.status) throw null;
if (12 === request.status) throw null;
props = resolveDefaultPropsOnNonClassComponent(type, props);
renderElement(request, task, keyPath, type, props, ref);
return;
@@ -5745,7 +5745,7 @@ __DEV__ &&
);
case REACT_LAZY_TYPE:
node = callLazyInitInDEV(node);
if (1 === request.status) throw null;
if (12 === request.status) throw null;
renderNodeDestructive(request, task, node, childIndex);
return;
}
@@ -6263,7 +6263,7 @@ __DEV__ &&
}
segment = getThrownInfo(task.componentStack);
if (null === boundary) {
if (2 !== request.status && request.status !== CLOSED) {
if (13 !== request.status && request.status !== CLOSED) {
boundary = task.replay;
if (null === boundary) {
logRecoverableError(request, error, segment);
@@ -6439,7 +6439,10 @@ __DEV__ &&
0 === request.allPendingTasks && completeAll(request);
}
function performWork(request$jscomp$1) {
if (request$jscomp$1.status !== CLOSED && 2 !== request$jscomp$1.status) {
if (
request$jscomp$1.status !== CLOSED &&
13 !== request$jscomp$1.status
) {
var prevContext = currentActiveSnapshot,
prevDispatcher = ReactSharedInternals.H;
ReactSharedInternals.H = HooksDispatcher;
@@ -6507,7 +6510,7 @@ __DEV__ &&
erroredReplay(
request$jscomp$0,
request.blockedBoundary,
1 === request$jscomp$0.status
12 === request$jscomp$0.status
? request$jscomp$0.fatalError
: x,
errorInfo,
@@ -6558,7 +6561,7 @@ __DEV__ &&
var x$jscomp$0 =
thrownValue === SuspenseException
? getSuspendedThenable()
: 1 === request.status
: 12 === request.status
? request.fatalError
: thrownValue;
if (
@@ -7224,10 +7227,10 @@ __DEV__ &&
}
function startWork(request) {
request.flushScheduled = null !== request.destination;
null !== request.trackedPostpones
? performWork(request)
: (performWork(request),
safelyEmitEarlyPreloads(request, 0 === request.pendingRootTasks));
performWork(request);
10 === request.status && (request.status = 11);
null === request.trackedPostpones &&
safelyEmitEarlyPreloads(request, 0 === request.pendingRootTasks);
}
function enqueueFlush(request) {
if (
@@ -7243,7 +7246,7 @@ __DEV__ &&
}
}
function startFlowing(request, destination) {
if (2 === request.status)
if (13 === request.status)
(request.status = CLOSED), destination.destroy(request.fatalError);
else if (request.status !== CLOSED && null === request.destination) {
request.destination = destination;
@@ -7256,7 +7259,7 @@ __DEV__ &&
}
}
function abort(request, reason) {
0 === request.status && (request.status = 1);
if (11 === request.status || 10 === request.status) request.status = 12;
try {
var abortableTasks = request.abortableTasks;
if (0 < abortableTasks.size) {
@@ -8776,7 +8779,7 @@ __DEV__ &&
COMPLETED = 1,
FLUSHED = 2,
POSTPONED = 5,
CLOSED = 3,
CLOSED = 14,
currentRequest = null,
didWarnAboutBadClass = {},
didWarnAboutContextTypes = {},
@@ -8802,5 +8805,5 @@ __DEV__ &&
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.0.0-www-modern-76aee6f3-20240926";
exports.version = "19.0.0-www-modern-67fee58b-20240926";
})();
@@ -2680,16 +2680,16 @@ function createRenderState(resumableState, generateStaticMarkup) {
"\x3c/script>"
);
bootstrapScriptContent = idPrefix + "P:";
var JSCompiler_object_inline_segmentPrefix_1633 = idPrefix + "S:";
var JSCompiler_object_inline_segmentPrefix_1630 = idPrefix + "S:";
idPrefix += "B:";
var JSCompiler_object_inline_preconnects_1647 = new Set(),
JSCompiler_object_inline_fontPreloads_1648 = new Set(),
JSCompiler_object_inline_highImagePreloads_1649 = new Set(),
JSCompiler_object_inline_styles_1650 = new Map(),
JSCompiler_object_inline_bootstrapScripts_1651 = new Set(),
JSCompiler_object_inline_scripts_1652 = new Set(),
JSCompiler_object_inline_bulkPreloads_1653 = new Set(),
JSCompiler_object_inline_preloads_1654 = {
var JSCompiler_object_inline_preconnects_1644 = new Set(),
JSCompiler_object_inline_fontPreloads_1645 = new Set(),
JSCompiler_object_inline_highImagePreloads_1646 = new Set(),
JSCompiler_object_inline_styles_1647 = new Map(),
JSCompiler_object_inline_bootstrapScripts_1648 = new Set(),
JSCompiler_object_inline_scripts_1649 = new Set(),
JSCompiler_object_inline_bulkPreloads_1650 = new Set(),
JSCompiler_object_inline_preloads_1651 = {
images: new Map(),
stylesheets: new Map(),
scripts: new Map(),
@@ -2726,7 +2726,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
scriptConfig.moduleScriptResources[href] = null;
scriptConfig = [];
pushLinkImpl(scriptConfig, props);
JSCompiler_object_inline_bootstrapScripts_1651.add(scriptConfig);
JSCompiler_object_inline_bootstrapScripts_1648.add(scriptConfig);
bootstrapChunks.push('<script src="', escapeTextForBrowser(src));
"string" === typeof integrity &&
bootstrapChunks.push('" integrity="', escapeTextForBrowser(integrity));
@@ -2767,7 +2767,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
(props.moduleScriptResources[scriptConfig] = null),
(props = []),
pushLinkImpl(props, integrity),
JSCompiler_object_inline_bootstrapScripts_1651.add(props),
JSCompiler_object_inline_bootstrapScripts_1648.add(props),
bootstrapChunks.push(
'<script type="module" src="',
escapeTextForBrowser(i)
@@ -2782,7 +2782,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
bootstrapChunks.push('" async="">\x3c/script>');
return {
placeholderPrefix: bootstrapScriptContent,
segmentPrefix: JSCompiler_object_inline_segmentPrefix_1633,
segmentPrefix: JSCompiler_object_inline_segmentPrefix_1630,
boundaryPrefix: idPrefix,
startInlineScript: "<script>",
htmlChunks: null,
@@ -2802,14 +2802,14 @@ function createRenderState(resumableState, generateStaticMarkup) {
charsetChunks: [],
viewportChunks: [],
hoistableChunks: [],
preconnects: JSCompiler_object_inline_preconnects_1647,
fontPreloads: JSCompiler_object_inline_fontPreloads_1648,
highImagePreloads: JSCompiler_object_inline_highImagePreloads_1649,
styles: JSCompiler_object_inline_styles_1650,
bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1651,
scripts: JSCompiler_object_inline_scripts_1652,
bulkPreloads: JSCompiler_object_inline_bulkPreloads_1653,
preloads: JSCompiler_object_inline_preloads_1654,
preconnects: JSCompiler_object_inline_preconnects_1644,
fontPreloads: JSCompiler_object_inline_fontPreloads_1645,
highImagePreloads: JSCompiler_object_inline_highImagePreloads_1646,
styles: JSCompiler_object_inline_styles_1647,
bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1648,
scripts: JSCompiler_object_inline_scripts_1649,
bulkPreloads: JSCompiler_object_inline_bulkPreloads_1650,
preloads: JSCompiler_object_inline_preloads_1651,
stylesToHoist: !1,
generateStaticMarkup: generateStaticMarkup
};
@@ -3602,7 +3602,7 @@ function RequestInstance(
this.rootFormatContext = rootFormatContext;
this.progressiveChunkSize =
void 0 === progressiveChunkSize ? 12800 : progressiveChunkSize;
this.status = 0;
this.status = 10;
this.fatalError = null;
this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
this.completedRootSegment = null;
@@ -3856,8 +3856,8 @@ function fatalError(request, error) {
onShellError(error);
onFatalError(error);
null !== request.destination
? ((request.status = 3), request.destination.destroy(error))
: ((request.status = 2), (request.fatalError = error));
? ((request.status = 14), request.destination.destroy(error))
: ((request.status = 13), (request.fatalError = error));
}
function renderWithHooks(request, task, keyPath, Component, props, secondArg) {
var prevThenableState = task.thenableState;
@@ -4059,7 +4059,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
}
else internalInstance.queue = null;
JSCompiler_inline_result = props.render();
if (1 === request.status) throw null;
if (12 === request.status) throw null;
defaultProps = type.childContextTypes;
if (null !== defaultProps && void 0 !== defaultProps) {
keyPath = task.legacyContext;
@@ -4097,7 +4097,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
props,
legacyContext
);
if (1 === request.status) throw null;
if (12 === request.status) throw null;
finishFunctionComponent(
request,
task,
@@ -4287,7 +4287,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
(propName.status = 1);
} catch (thrownValue) {
throw (
((propName.status = 1 === request.status ? 3 : 4), thrownValue)
((propName.status = 12 === request.status ? 3 : 4), thrownValue)
);
} finally {
(task.blockedSegment = contextKey), (task.keyPath = type);
@@ -4335,7 +4335,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
}
} catch (thrownValue$28) {
(propName$33.status = 4),
1 === request.status
12 === request.status
? ((partial.status = 3),
(JSCompiler_inline_result = request.fatalError))
: ((partial.status = 4),
@@ -4425,7 +4425,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
case REACT_LAZY_TYPE:
contextKey = type._init;
type = contextKey(type._payload);
if (1 === request.status) throw null;
if (12 === request.status) throw null;
contextKey = resolveDefaultPropsOnNonClassComponent(type, props);
renderElement(request, task, keyPath, type, contextKey, ref);
return;
@@ -4653,7 +4653,7 @@ function retryNode(request, task) {
case REACT_LAZY_TYPE:
childNodes = node._init;
node = childNodes(node._payload);
if (1 === request.status) throw null;
if (12 === request.status) throw null;
renderNodeDestructive(request, task, node, childIndex);
return;
}
@@ -5011,7 +5011,7 @@ function abortTask(task, request, error) {
}
segment = getThrownInfo(task.componentStack);
if (null === boundary) {
if (2 !== request.status && 3 !== request.status) {
if (13 !== request.status && 14 !== request.status) {
boundary = task.replay;
if (null === boundary) {
logRecoverableError(request, error, segment);
@@ -5175,7 +5175,7 @@ function finishedTask(request, boundary, segment) {
0 === request.allPendingTasks && completeAll(request);
}
function performWork(request$jscomp$2) {
if (3 !== request$jscomp$2.status && 2 !== request$jscomp$2.status) {
if (14 !== request$jscomp$2.status && 13 !== request$jscomp$2.status) {
var prevContext = currentActiveSnapshot,
prevDispatcher = ReactSharedInternals.H;
ReactSharedInternals.H = HooksDispatcher;
@@ -5236,7 +5236,7 @@ function performWork(request$jscomp$2) {
var request$jscomp$1 = request$jscomp$0,
boundary = task.blockedBoundary,
error$jscomp$0 =
1 === request$jscomp$0.status
12 === request$jscomp$0.status
? request$jscomp$0.fatalError
: x,
replayNodes = task.replay.nodes,
@@ -5291,7 +5291,7 @@ function performWork(request$jscomp$2) {
var x$jscomp$0 =
thrownValue === SuspenseException
? getSuspendedThenable()
: 1 === request.status
: 12 === request.status
? request.fatalError
: thrownValue;
if (
@@ -5790,7 +5790,7 @@ function flushCompletedQueues(request, destination) {
((partialBoundaries = endChunkForTag("body")),
destination.push(partialBoundaries)),
i.hasHtml && ((i = endChunkForTag("html")), destination.push(i)),
(request.status = 3),
(request.status = 14),
destination.push(null),
(request.destination = null));
}
@@ -5809,9 +5809,9 @@ function enqueueFlush(request) {
}
}
function startFlowing(request, destination) {
if (2 === request.status)
(request.status = 3), destination.destroy(request.fatalError);
else if (3 !== request.status && null === request.destination) {
if (13 === request.status)
(request.status = 14), destination.destroy(request.fatalError);
else if (14 !== request.status && null === request.destination) {
request.destination = destination;
try {
flushCompletedQueues(request, destination);
@@ -5821,7 +5821,7 @@ function startFlowing(request, destination) {
}
}
function abort(request, reason) {
0 === request.status && (request.status = 1);
if (11 === request.status || 10 === request.status) request.status = 12;
try {
var abortableTasks = request.abortableTasks;
if (0 < abortableTasks.size) {
@@ -5876,10 +5876,10 @@ function renderToStringImpl(
void 0
);
children.flushScheduled = null !== children.destination;
null !== children.trackedPostpones
? performWork(children)
: (performWork(children),
safelyEmitEarlyPreloads(children, 0 === children.pendingRootTasks));
performWork(children);
10 === children.status && (children.status = 11);
null === children.trackedPostpones &&
safelyEmitEarlyPreloads(children, 0 === children.pendingRootTasks);
abort(children, abortReason);
startFlowing(children, {
push: function (chunk) {
@@ -5911,4 +5911,4 @@ exports.renderToString = function (children, options) {
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.0.0-www-classic-76aee6f3-20240926";
exports.version = "19.0.0-www-classic-67fee58b-20240926";
@@ -2678,16 +2678,16 @@ function createRenderState(resumableState, generateStaticMarkup) {
"\x3c/script>"
);
bootstrapScriptContent = idPrefix + "P:";
var JSCompiler_object_inline_segmentPrefix_1620 = idPrefix + "S:";
var JSCompiler_object_inline_segmentPrefix_1617 = idPrefix + "S:";
idPrefix += "B:";
var JSCompiler_object_inline_preconnects_1634 = new Set(),
JSCompiler_object_inline_fontPreloads_1635 = new Set(),
JSCompiler_object_inline_highImagePreloads_1636 = new Set(),
JSCompiler_object_inline_styles_1637 = new Map(),
JSCompiler_object_inline_bootstrapScripts_1638 = new Set(),
JSCompiler_object_inline_scripts_1639 = new Set(),
JSCompiler_object_inline_bulkPreloads_1640 = new Set(),
JSCompiler_object_inline_preloads_1641 = {
var JSCompiler_object_inline_preconnects_1631 = new Set(),
JSCompiler_object_inline_fontPreloads_1632 = new Set(),
JSCompiler_object_inline_highImagePreloads_1633 = new Set(),
JSCompiler_object_inline_styles_1634 = new Map(),
JSCompiler_object_inline_bootstrapScripts_1635 = new Set(),
JSCompiler_object_inline_scripts_1636 = new Set(),
JSCompiler_object_inline_bulkPreloads_1637 = new Set(),
JSCompiler_object_inline_preloads_1638 = {
images: new Map(),
stylesheets: new Map(),
scripts: new Map(),
@@ -2724,7 +2724,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
scriptConfig.moduleScriptResources[href] = null;
scriptConfig = [];
pushLinkImpl(scriptConfig, props);
JSCompiler_object_inline_bootstrapScripts_1638.add(scriptConfig);
JSCompiler_object_inline_bootstrapScripts_1635.add(scriptConfig);
bootstrapChunks.push('<script src="', escapeTextForBrowser(src));
"string" === typeof integrity &&
bootstrapChunks.push('" integrity="', escapeTextForBrowser(integrity));
@@ -2765,7 +2765,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
(props.moduleScriptResources[scriptConfig] = null),
(props = []),
pushLinkImpl(props, integrity),
JSCompiler_object_inline_bootstrapScripts_1638.add(props),
JSCompiler_object_inline_bootstrapScripts_1635.add(props),
bootstrapChunks.push(
'<script type="module" src="',
escapeTextForBrowser(i)
@@ -2780,7 +2780,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
bootstrapChunks.push('" async="">\x3c/script>');
return {
placeholderPrefix: bootstrapScriptContent,
segmentPrefix: JSCompiler_object_inline_segmentPrefix_1620,
segmentPrefix: JSCompiler_object_inline_segmentPrefix_1617,
boundaryPrefix: idPrefix,
startInlineScript: "<script>",
htmlChunks: null,
@@ -2800,14 +2800,14 @@ function createRenderState(resumableState, generateStaticMarkup) {
charsetChunks: [],
viewportChunks: [],
hoistableChunks: [],
preconnects: JSCompiler_object_inline_preconnects_1634,
fontPreloads: JSCompiler_object_inline_fontPreloads_1635,
highImagePreloads: JSCompiler_object_inline_highImagePreloads_1636,
styles: JSCompiler_object_inline_styles_1637,
bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1638,
scripts: JSCompiler_object_inline_scripts_1639,
bulkPreloads: JSCompiler_object_inline_bulkPreloads_1640,
preloads: JSCompiler_object_inline_preloads_1641,
preconnects: JSCompiler_object_inline_preconnects_1631,
fontPreloads: JSCompiler_object_inline_fontPreloads_1632,
highImagePreloads: JSCompiler_object_inline_highImagePreloads_1633,
styles: JSCompiler_object_inline_styles_1634,
bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1635,
scripts: JSCompiler_object_inline_scripts_1636,
bulkPreloads: JSCompiler_object_inline_bulkPreloads_1637,
preloads: JSCompiler_object_inline_preloads_1638,
stylesToHoist: !1,
generateStaticMarkup: generateStaticMarkup
};
@@ -3592,7 +3592,7 @@ function RequestInstance(
this.rootFormatContext = rootFormatContext;
this.progressiveChunkSize =
void 0 === progressiveChunkSize ? 12800 : progressiveChunkSize;
this.status = 0;
this.status = 10;
this.fatalError = null;
this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
this.completedRootSegment = null;
@@ -3841,8 +3841,8 @@ function fatalError(request, error) {
onShellError(error);
onFatalError(error);
null !== request.destination
? ((request.status = 3), request.destination.destroy(error))
: ((request.status = 2), (request.fatalError = error));
? ((request.status = 14), request.destination.destroy(error))
: ((request.status = 13), (request.fatalError = error));
}
function renderWithHooks(request, task, keyPath, Component, props, secondArg) {
var prevThenableState = task.thenableState;
@@ -4031,14 +4031,14 @@ function renderElement(request, task, keyPath, type, props, ref) {
}
else defaultProps.queue = null;
type = newProps.render();
if (1 === request.status) throw null;
if (12 === request.status) throw null;
props = task.keyPath;
task.keyPath = keyPath;
renderNodeDestructive(request, task, type, -1);
task.keyPath = props;
} else {
type = renderWithHooks(request, task, keyPath, type, props, void 0);
if (1 === request.status) throw null;
if (12 === request.status) throw null;
finishFunctionComponent(
request,
task,
@@ -4208,7 +4208,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
(boundarySegment.status = 1);
} catch (thrownValue) {
throw (
((boundarySegment.status = 1 === request.status ? 3 : 4),
((boundarySegment.status = 12 === request.status ? 3 : 4),
thrownValue)
);
} finally {
@@ -4256,7 +4256,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
}
} catch (thrownValue$28) {
(propName.status = 4),
1 === request.status
12 === request.status
? ((contentRootSegment.status = 3),
(newProps = request.fatalError))
: ((contentRootSegment.status = 4),
@@ -4346,7 +4346,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
case REACT_LAZY_TYPE:
newProps = type._init;
type = newProps(type._payload);
if (1 === request.status) throw null;
if (12 === request.status) throw null;
props = resolveDefaultPropsOnNonClassComponent(type, props);
renderElement(request, task, keyPath, type, props, ref);
return;
@@ -4573,7 +4573,7 @@ function retryNode(request, task) {
case REACT_LAZY_TYPE:
childNodes = node._init;
node = childNodes(node._payload);
if (1 === request.status) throw null;
if (12 === request.status) throw null;
renderNodeDestructive(request, task, node, childIndex);
return;
}
@@ -4923,7 +4923,7 @@ function abortTask(task, request, error) {
}
segment = getThrownInfo(task.componentStack);
if (null === boundary) {
if (2 !== request.status && 3 !== request.status) {
if (13 !== request.status && 14 !== request.status) {
boundary = task.replay;
if (null === boundary) {
logRecoverableError(request, error, segment);
@@ -5087,7 +5087,7 @@ function finishedTask(request, boundary, segment) {
0 === request.allPendingTasks && completeAll(request);
}
function performWork(request$jscomp$2) {
if (3 !== request$jscomp$2.status && 2 !== request$jscomp$2.status) {
if (14 !== request$jscomp$2.status && 13 !== request$jscomp$2.status) {
var prevContext = currentActiveSnapshot,
prevDispatcher = ReactSharedInternals.H;
ReactSharedInternals.H = HooksDispatcher;
@@ -5148,7 +5148,7 @@ function performWork(request$jscomp$2) {
var request$jscomp$1 = request$jscomp$0,
boundary = task.blockedBoundary,
error$jscomp$0 =
1 === request$jscomp$0.status
12 === request$jscomp$0.status
? request$jscomp$0.fatalError
: x,
replayNodes = task.replay.nodes,
@@ -5203,7 +5203,7 @@ function performWork(request$jscomp$2) {
var x$jscomp$0 =
thrownValue === SuspenseException
? getSuspendedThenable()
: 1 === request.status
: 12 === request.status
? request.fatalError
: thrownValue;
if (
@@ -5702,7 +5702,7 @@ function flushCompletedQueues(request, destination) {
((partialBoundaries = endChunkForTag("body")),
destination.push(partialBoundaries)),
i.hasHtml && ((i = endChunkForTag("html")), destination.push(i)),
(request.status = 3),
(request.status = 14),
destination.push(null),
(request.destination = null));
}
@@ -5721,9 +5721,9 @@ function enqueueFlush(request) {
}
}
function startFlowing(request, destination) {
if (2 === request.status)
(request.status = 3), destination.destroy(request.fatalError);
else if (3 !== request.status && null === request.destination) {
if (13 === request.status)
(request.status = 14), destination.destroy(request.fatalError);
else if (14 !== request.status && null === request.destination) {
request.destination = destination;
try {
flushCompletedQueues(request, destination);
@@ -5733,7 +5733,7 @@ function startFlowing(request, destination) {
}
}
function abort(request, reason) {
0 === request.status && (request.status = 1);
if (11 === request.status || 10 === request.status) request.status = 12;
try {
var abortableTasks = request.abortableTasks;
if (0 < abortableTasks.size) {
@@ -5788,10 +5788,10 @@ function renderToStringImpl(
void 0
);
children.flushScheduled = null !== children.destination;
null !== children.trackedPostpones
? performWork(children)
: (performWork(children),
safelyEmitEarlyPreloads(children, 0 === children.pendingRootTasks));
performWork(children);
10 === children.status && (children.status = 11);
null === children.trackedPostpones &&
safelyEmitEarlyPreloads(children, 0 === children.pendingRootTasks);
abort(children, abortReason);
startFlowing(children, {
push: function (chunk) {
@@ -5823,4 +5823,4 @@ exports.renderToString = function (children, options) {
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.0.0-www-modern-76aee6f3-20240926";
exports.version = "19.0.0-www-modern-67fee58b-20240926";
@@ -4142,7 +4142,7 @@ __DEV__ &&
this.rootFormatContext = rootFormatContext;
this.progressiveChunkSize =
void 0 === progressiveChunkSize ? 12800 : progressiveChunkSize;
this.status = 0;
this.status = 10;
this.fatalError = null;
this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
this.completedRootSegment = null;
@@ -4387,12 +4387,12 @@ __DEV__ &&
onShellError(error);
onFatalError(error);
null !== request.destination
? ((request.status = 3),
? ((request.status = 14),
(request = request.destination),
(request.done = !0),
(request.fatal = !0),
(request.error = error))
: ((request.status = 2), (request.fatalError = error));
: ((request.status = 13), (request.fatalError = error));
}
function renderWithHooks(
request,
@@ -4854,7 +4854,7 @@ __DEV__ &&
}
else defaultProps.queue = null;
defaultProps = callRenderInDEV(newProps);
if (1 === request.status) throw null;
if (12 === request.status) throw null;
newProps.props !== props &&
(didWarnAboutReassigningProps ||
error$jscomp$2(
@@ -4878,7 +4878,7 @@ __DEV__ &&
),
(didWarnAboutBadClass[newProps] = !0)));
props = renderWithHooks(request, task, keyPath, type, props, void 0);
if (1 === request.status) throw null;
if (12 === request.status) throw null;
newProps = 0 !== localIdCounter;
defaultProps = actionStateCounter;
addendum = actionStateMatchingIndex;
@@ -5092,7 +5092,7 @@ __DEV__ &&
(boundarySegment.status = 1);
} catch (thrownValue) {
throw (
((boundarySegment.status = 1 === request.status ? 3 : 4),
((boundarySegment.status = 12 === request.status ? 3 : 4),
thrownValue)
);
} finally {
@@ -5137,7 +5137,7 @@ __DEV__ &&
}
} catch (thrownValue$2) {
(propName.status = 4),
1 === request.status
12 === request.status
? ((contentRootSegment.status = 3),
(newProps = request.fatalError))
: ((contentRootSegment.status = 4),
@@ -5245,7 +5245,7 @@ __DEV__ &&
}
case REACT_LAZY_TYPE:
type = callLazyInitInDEV(type);
if (1 === request.status) throw null;
if (12 === request.status) throw null;
props = resolveDefaultPropsOnNonClassComponent(type, props);
renderElement(request, task, keyPath, type, props, ref);
return;
@@ -5481,7 +5481,7 @@ __DEV__ &&
);
case REACT_LAZY_TYPE:
node = callLazyInitInDEV(node);
if (1 === request.status) throw null;
if (12 === request.status) throw null;
renderNodeDestructive(request, task, node, childIndex);
return;
}
@@ -5999,7 +5999,7 @@ __DEV__ &&
}
segment = getThrownInfo(task.componentStack);
if (null === boundary) {
if (2 !== request.status && 3 !== request.status) {
if (13 !== request.status && 14 !== request.status) {
boundary = task.replay;
if (null === boundary) {
logRecoverableError(request, error, segment);
@@ -6729,7 +6729,7 @@ __DEV__ &&
error$jscomp$2(
"There was still abortable task at the root when we closed. This is a bug in React."
),
(request.status = 3),
(request.status = 14),
(destination.done = !0),
(request.destination = null));
}
@@ -6741,7 +6741,7 @@ __DEV__ &&
(request.flushScheduled = !0);
}
function abort(request, reason) {
0 === request.status && (request.status = 1);
if (11 === request.status || 10 === request.status) request.status = 12;
try {
var abortableTasks = request.abortableTasks;
if (0 < abortableTasks.size) {
@@ -8141,7 +8141,7 @@ __DEV__ &&
exports.renderNextChunk = function (stream) {
var request = stream.request;
stream = stream.destination;
if (3 !== request.status && 2 !== request.status) {
if (14 !== request.status && 13 !== request.status) {
var prevContext = currentActiveSnapshot,
prevDispatcher = ReactSharedInternals.H;
ReactSharedInternals.H = HooksDispatcher;
@@ -8216,7 +8216,7 @@ __DEV__ &&
erroredReplay(
request$jscomp$1,
request$jscomp$0.blockedBoundary,
1 === request$jscomp$1.status
12 === request$jscomp$1.status
? request$jscomp$1.fatalError
: x,
errorInfo,
@@ -8264,7 +8264,7 @@ __DEV__ &&
var x$jscomp$0 =
thrownValue === SuspenseException
? getSuspendedThenable()
: 1 === request$jscomp$0.status
: 12 === request$jscomp$0.status
? request$jscomp$0.fatalError
: thrownValue;
if (
@@ -8331,13 +8331,13 @@ __DEV__ &&
(currentRequest = prevRequest);
}
}
if (2 === request.status)
(request.status = 3),
if (13 === request.status)
(request.status = 14),
(request = request.fatalError),
(stream.done = !0),
(stream.fatal = !0),
(stream.error = request);
else if (3 !== request.status && null === request.destination) {
else if (14 !== request.status && null === request.destination) {
request.destination = stream;
try {
flushCompletedQueues(request, stream);
@@ -3488,7 +3488,7 @@ function RequestInstance(
this.rootFormatContext = rootFormatContext;
this.progressiveChunkSize =
void 0 === progressiveChunkSize ? 12800 : progressiveChunkSize;
this.status = 0;
this.status = 10;
this.fatalError = null;
this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
this.completedRootSegment = null;
@@ -3680,12 +3680,12 @@ function fatalError(request, error) {
onShellError(error);
onFatalError(error);
null !== request.destination
? ((request.status = 3),
? ((request.status = 14),
(request = request.destination),
(request.done = !0),
(request.fatal = !0),
(request.error = error))
: ((request.status = 2), (request.fatalError = error));
: ((request.status = 13), (request.fatalError = error));
}
function renderWithHooks(request, task, keyPath, Component, props, secondArg) {
var prevThenableState = task.thenableState;
@@ -3877,14 +3877,14 @@ function renderElement(request, task, keyPath, type, props, ref) {
}
else defaultProps.queue = null;
type = newProps.render();
if (1 === request.status) throw null;
if (12 === request.status) throw null;
props = task.keyPath;
task.keyPath = keyPath;
renderNodeDestructive(request, task, type, -1);
task.keyPath = props;
} else {
type = renderWithHooks(request, task, keyPath, type, props, void 0);
if (1 === request.status) throw null;
if (12 === request.status) throw null;
finishFunctionComponent(
request,
task,
@@ -4051,7 +4051,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
(boundarySegment.status = 1);
} catch (thrownValue) {
throw (
((boundarySegment.status = 1 === request.status ? 3 : 4),
((boundarySegment.status = 12 === request.status ? 3 : 4),
thrownValue)
);
} finally {
@@ -4096,7 +4096,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
}
} catch (thrownValue$28) {
(propName.status = 4),
1 === request.status
12 === request.status
? ((contentRootSegment.status = 3),
(newProps = request.fatalError))
: ((contentRootSegment.status = 4),
@@ -4186,7 +4186,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
case REACT_LAZY_TYPE:
newProps = type._init;
type = newProps(type._payload);
if (1 === request.status) throw null;
if (12 === request.status) throw null;
props = resolveDefaultPropsOnNonClassComponent(type, props);
renderElement(request, task, keyPath, type, props, ref);
return;
@@ -4422,7 +4422,7 @@ function retryNode(request, task) {
case REACT_LAZY_TYPE:
childNodes = node._init;
node = childNodes(node._payload);
if (1 === request.status) throw null;
if (12 === request.status) throw null;
renderNodeDestructive(request, task, node, childIndex);
return;
}
@@ -4776,7 +4776,7 @@ function abortTask(task, request, error) {
}
segment = getThrownInfo(task.componentStack);
if (null === boundary) {
if (2 !== request.status && 3 !== request.status) {
if (13 !== request.status && 14 !== request.status) {
boundary = task.replay;
if (null === boundary) {
logRecoverableError(request, error, segment);
@@ -5382,7 +5382,7 @@ function flushCompletedQueues(request, destination) {
(i = request.resumableState),
i.hasBody && writeChunk(destination, endChunkForTag("body")),
i.hasHtml && writeChunk(destination, endChunkForTag("html")),
(request.status = 3),
(request.status = 14),
(destination.done = !0),
(request.destination = null));
}
@@ -5394,7 +5394,7 @@ function enqueueFlush(request) {
(request.flushScheduled = !0);
}
function abort(request, reason) {
0 === request.status && (request.status = 1);
if (11 === request.status || 10 === request.status) request.status = 12;
try {
var abortableTasks = request.abortableTasks;
if (0 < abortableTasks.size) {
@@ -5438,7 +5438,7 @@ exports.hasFinished = function (stream) {
exports.renderNextChunk = function (stream) {
var request = stream.request;
stream = stream.destination;
if (3 !== request.status && 2 !== request.status) {
if (14 !== request.status && 13 !== request.status) {
var prevContext = currentActiveSnapshot,
prevDispatcher = ReactSharedInternals.H;
ReactSharedInternals.H = HooksDispatcher;
@@ -5499,7 +5499,7 @@ exports.renderNextChunk = function (stream) {
var errorInfo = getThrownInfo(task$jscomp$0.componentStack),
boundary = task$jscomp$0.blockedBoundary,
error$jscomp$0 =
1 === request.status ? request.fatalError : x,
12 === request.status ? request.fatalError : x,
replayNodes = task$jscomp$0.replay.nodes,
resumeSlots = task$jscomp$0.replay.slots;
errorDigest = logRecoverableError(
@@ -5551,7 +5551,7 @@ exports.renderNextChunk = function (stream) {
var x$jscomp$0 =
thrownValue === SuspenseException
? getSuspendedThenable()
: 1 === request.status
: 12 === request.status
? request.fatalError
: thrownValue;
if (
@@ -5607,13 +5607,13 @@ exports.renderNextChunk = function (stream) {
(currentRequest = prevRequest);
}
}
if (2 === request.status)
(request.status = 3),
if (13 === request.status)
(request.status = 14),
(request = request.fatalError),
(stream.done = !0),
(stream.fatal = !0),
(stream.error = request);
else if (3 !== request.status && null === request.destination) {
else if (14 !== request.status && null === request.destination) {
request.destination = stream;
try {
flushCompletedQueues(request, stream);
@@ -28105,11 +28105,11 @@ __DEV__ &&
: flushSyncErrorInBuildsThatSupportLegacyMode;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-www-classic-76aee6f3-20240926" !== isomorphicReactPackageVersion)
if ("19.0.0-www-classic-67fee58b-20240926" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.0.0-www-classic-76aee6f3-20240926\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.0.0-www-classic-67fee58b-20240926\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -28153,11 +28153,11 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.0.0-www-classic-76aee6f3-20240926",
version: "19.0.0-www-classic-67fee58b-20240926",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-www-classic-76aee6f3-20240926"
reconcilerVersion: "19.0.0-www-classic-67fee58b-20240926"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -28976,5 +28976,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-76aee6f3-20240926";
exports.version = "19.0.0-www-classic-67fee58b-20240926";
})();
@@ -27219,11 +27219,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-www-modern-76aee6f3-20240926" !== isomorphicReactPackageVersion)
if ("19.0.0-www-modern-67fee58b-20240926" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.0.0-www-modern-76aee6f3-20240926\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.0.0-www-modern-67fee58b-20240926\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -27266,11 +27266,11 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.0.0-www-modern-76aee6f3-20240926",
version: "19.0.0-www-modern-67fee58b-20240926",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-www-modern-76aee6f3-20240926"
reconcilerVersion: "19.0.0-www-modern-67fee58b-20240926"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -28041,5 +28041,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-76aee6f3-20240926";
exports.version = "19.0.0-www-modern-67fee58b-20240926";
})();
@@ -17741,14 +17741,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1804 = React.version;
if (
"19.0.0-www-classic-76aee6f3-20240926" !==
"19.0.0-www-classic-67fee58b-20240926" !==
isomorphicReactPackageVersion$jscomp$inline_1804
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1804,
"19.0.0-www-classic-76aee6f3-20240926"
"19.0.0-www-classic-67fee58b-20240926"
)
);
function flushSyncFromReconciler(fn) {
@@ -17793,11 +17793,11 @@ Internals.Events = [
];
var internals$jscomp$inline_2322 = {
bundleType: 0,
version: "19.0.0-www-classic-76aee6f3-20240926",
version: "19.0.0-www-classic-67fee58b-20240926",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-www-classic-76aee6f3-20240926"
reconcilerVersion: "19.0.0-www-classic-67fee58b-20240926"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2323 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -18404,4 +18404,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-76aee6f3-20240926";
exports.version = "19.0.0-www-classic-67fee58b-20240926";
@@ -17109,14 +17109,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1775 = React.version;
if (
"19.0.0-www-modern-76aee6f3-20240926" !==
"19.0.0-www-modern-67fee58b-20240926" !==
isomorphicReactPackageVersion$jscomp$inline_1775
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1775,
"19.0.0-www-modern-76aee6f3-20240926"
"19.0.0-www-modern-67fee58b-20240926"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -17134,11 +17134,11 @@ Internals.Events = [
];
var internals$jscomp$inline_2313 = {
bundleType: 0,
version: "19.0.0-www-modern-76aee6f3-20240926",
version: "19.0.0-www-modern-67fee58b-20240926",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-www-modern-76aee6f3-20240926"
reconcilerVersion: "19.0.0-www-modern-67fee58b-20240926"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2314 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17652,4 +17652,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-76aee6f3-20240926";
exports.version = "19.0.0-www-modern-67fee58b-20240926";
@@ -19218,7 +19218,7 @@ __DEV__ &&
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getInstanceFromNode,
reconcilerVersion: "19.0.0-www-classic-76aee6f3-20240926"
reconcilerVersion: "19.0.0-www-classic-67fee58b-20240926"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -18609,7 +18609,7 @@ __DEV__ &&
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getInstanceFromNode,
reconcilerVersion: "19.0.0-www-modern-76aee6f3-20240926"
reconcilerVersion: "19.0.0-www-modern-67fee58b-20240926"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -12854,7 +12854,7 @@ module.exports = function ($$$config) {
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getInstanceFromNode,
reconcilerVersion: "19.0.0-www-classic-76aee6f3-20240926"
reconcilerVersion: "19.0.0-www-classic-67fee58b-20240926"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -12344,7 +12344,7 @@ module.exports = function ($$$config) {
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getInstanceFromNode,
reconcilerVersion: "19.0.0-www-modern-76aee6f3-20240926"
reconcilerVersion: "19.0.0-www-modern-67fee58b-20240926"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -14961,11 +14961,11 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.0.0-www-classic-76aee6f3-20240926",
version: "19.0.0-www-classic-67fee58b-20240926",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getInstanceFromNode,
reconcilerVersion: "19.0.0-www-classic-76aee6f3-20240926"
reconcilerVersion: "19.0.0-www-classic-67fee58b-20240926"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -15100,5 +15100,5 @@ __DEV__ &&
exports.unstable_batchedUpdates = function (fn, a) {
return fn(a);
};
exports.version = "19.0.0-www-classic-76aee6f3-20240926";
exports.version = "19.0.0-www-classic-67fee58b-20240926";
})();
@@ -14961,11 +14961,11 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.0.0-www-modern-76aee6f3-20240926",
version: "19.0.0-www-modern-67fee58b-20240926",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getInstanceFromNode,
reconcilerVersion: "19.0.0-www-modern-76aee6f3-20240926"
reconcilerVersion: "19.0.0-www-modern-67fee58b-20240926"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -15100,5 +15100,5 @@ __DEV__ &&
exports.unstable_batchedUpdates = function (fn, a) {
return fn(a);
};
exports.version = "19.0.0-www-modern-76aee6f3-20240926";
exports.version = "19.0.0-www-modern-67fee58b-20240926";
})();
+1 -1
View File
@@ -1 +1 @@
19.0.0-www-classic-76aee6f3-20240926
19.0.0-www-classic-67fee58b-20240926
+1 -1
View File
@@ -1 +1 @@
19.0.0-www-modern-76aee6f3-20240926
19.0.0-www-modern-67fee58b-20240926