[Fiber] Prefix owner stacks with the current stack at the console call (#29697)

This information is available in the regular stack but since that's
hidden behind an expando and our appended stack to logs is not hidden,
it hides the most important frames like the name of the current
component.

This is closer to what happens to the native stack.

We only include stacks if they're within a ReactFiberCallUserSpace call
frame. This should be most that have a current fiber but this is
critical to filtering out most React frames if the regular node_modules
filter doesn't work.

Most React warnings fire during the rendering phase and not inside a
user space function but some do like hooks warnings and setState in
render. This feature is more important if we port this to React DevTools
appending stacks to all logs where it's likely to originate from inside
a component and you want the line within that component to immediately
part of the visible stack.

One thing that kind sucks is that we don't have a reliable way to
exclude React internal stack frames. We filter node_modules but it might
not match. For other cases I try hard to only track the stack frame at
the root of React (e.g. immediately inside createElement) until the
ReactFiberCallUserSpace so we don't need the filtering to work. In this
case it's hard to achieve the same thing though. This is easier in RDT
because we have the start/end line and parsing of stack traces so we can
use that to exclude internals but that's a lot of code/complexity for
shipping within the library.

For example in Safari:

<img width="590" alt="Screenshot 2024-05-31 at 6 15 27 PM"
src="https://github.com/facebook/react/assets/63648/2820c8c0-8a03-42e9-8678-8348f66b051a">

Ideally warnOnUseFormStateInDev and useFormState wouldn't be included
since they're React internals. Before this change, the Counter.js line
also wasn't included though which points to exactly where the error is
within the user code.

(Note Server Components have V8 formatted lines and Client Components
have JSC formatted lines.)

DiffTrain build for [4dcdf21325](https://github.com/facebook/react/commit/4dcdf21325028d7ae9bb3c2172dbbe9647a744ac)
This commit is contained in:
sebmarkbage
2024-06-03 16:31:47 +00:00
parent 27402d4be2
commit dae837bc64
39 changed files with 302 additions and 202 deletions
@@ -80,19 +80,19 @@ function error(format) {
args[_key2 - 1] = arguments[_key2];
}
printWarning('error', format, args);
printWarning('error', format, args, new Error('react-stack-top-frame'));
}
}
}
function printWarning(level, format, args) {
function printWarning(level, format, args, currentStack) {
{
var React = require('react');
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; // Defensive in case this is fired before React is initialized.
if (ReactSharedInternals != null && ReactSharedInternals.getCurrentStack) {
var stack = ReactSharedInternals.getCurrentStack();
var stack = ReactSharedInternals.getCurrentStack(currentStack);
if (stack !== '') {
format += '%s';
@@ -80,19 +80,19 @@ function error(format) {
args[_key2 - 1] = arguments[_key2];
}
printWarning('error', format, args);
printWarning('error', format, args, new Error('react-stack-top-frame'));
}
}
}
function printWarning(level, format, args) {
function printWarning(level, format, args, currentStack) {
{
var React = require('react');
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; // Defensive in case this is fired before React is initialized.
if (ReactSharedInternals != null && ReactSharedInternals.getCurrentStack) {
var stack = ReactSharedInternals.getCurrentStack();
var stack = ReactSharedInternals.getCurrentStack(currentStack);
if (stack !== '') {
format += '%s';
+1 -1
View File
@@ -1 +1 @@
9598c41a20162c8a9d57ccf6a356aa183b00b61a
4dcdf21325028d7ae9bb3c2172dbbe9647a744ac
+1 -1
View File
@@ -1 +1 @@
9598c41a20162c8a9d57ccf6a356aa183b00b61a
4dcdf21325028d7ae9bb3c2172dbbe9647a744ac
+5 -5
View File
@@ -22,7 +22,7 @@ if (
) {
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
}
var ReactVersion = '19.0.0-www-classic-9598c41a20-20240603';
var ReactVersion = '19.0.0-www-classic-4dcdf21325-20240603';
// Re-export dynamic flags from the www version.
var dynamicFeatureFlags = require('ReactFeatureFlags');
@@ -87,7 +87,7 @@ function warn(format) {
args[_key - 1] = arguments[_key];
}
printWarning('warn', format, args);
printWarning('warn', format, args, new Error('react-stack-top-frame'));
}
}
}
@@ -98,19 +98,19 @@ function error(format) {
args[_key2 - 1] = arguments[_key2];
}
printWarning('error', format, args);
printWarning('error', format, args, new Error('react-stack-top-frame'));
}
}
}
function printWarning(level, format, args) {
function printWarning(level, format, args, currentStack) {
{
var React = require('react');
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; // Defensive in case this is fired before React is initialized.
if (ReactSharedInternals != null && ReactSharedInternals.getCurrentStack) {
var stack = ReactSharedInternals.getCurrentStack();
var stack = ReactSharedInternals.getCurrentStack(currentStack);
if (stack !== '') {
format += '%s';
+5 -5
View File
@@ -22,7 +22,7 @@ if (
) {
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
}
var ReactVersion = '19.0.0-www-modern-9598c41a20-20240603';
var ReactVersion = '19.0.0-www-modern-4dcdf21325-20240603';
// Re-export dynamic flags from the www version.
var dynamicFeatureFlags = require('ReactFeatureFlags');
@@ -87,7 +87,7 @@ function warn(format) {
args[_key - 1] = arguments[_key];
}
printWarning('warn', format, args);
printWarning('warn', format, args, new Error('react-stack-top-frame'));
}
}
}
@@ -98,19 +98,19 @@ function error(format) {
args[_key2 - 1] = arguments[_key2];
}
printWarning('error', format, args);
printWarning('error', format, args, new Error('react-stack-top-frame'));
}
}
}
function printWarning(level, format, args) {
function printWarning(level, format, args, currentStack) {
{
var React = require('react');
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; // Defensive in case this is fired before React is initialized.
if (ReactSharedInternals != null && ReactSharedInternals.getCurrentStack) {
var stack = ReactSharedInternals.getCurrentStack();
var stack = ReactSharedInternals.getCurrentStack(currentStack);
if (stack !== '') {
format += '%s';
+1 -1
View File
@@ -684,4 +684,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-classic-9598c41a20-20240603";
exports.version = "19.0.0-www-classic-4dcdf21325-20240603";
+1 -1
View File
@@ -684,4 +684,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-modern-9598c41a20-20240603";
exports.version = "19.0.0-www-modern-4dcdf21325-20240603";
@@ -688,7 +688,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-classic-9598c41a20-20240603";
exports.version = "19.0.0-www-classic-4dcdf21325-20240603";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -688,7 +688,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-modern-9598c41a20-20240603";
exports.version = "19.0.0-www-modern-4dcdf21325-20240603";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+22 -12
View File
@@ -60,7 +60,7 @@ function _assertThisInitialized(self) {
return self;
}
var ReactVersion = '19.0.0-www-classic-9598c41a20-20240603';
var ReactVersion = '19.0.0-www-classic-4dcdf21325-20240603';
var LegacyRoot = 0;
var ConcurrentRoot = 1;
@@ -81,7 +81,7 @@ function warn(format) {
args[_key - 1] = arguments[_key];
}
printWarning('warn', format, args);
printWarning('warn', format, args, new Error('react-stack-top-frame'));
}
}
}
@@ -92,19 +92,19 @@ function error(format) {
args[_key2 - 1] = arguments[_key2];
}
printWarning('error', format, args);
printWarning('error', format, args, new Error('react-stack-top-frame'));
}
}
}
function printWarning(level, format, args) {
function printWarning(level, format, args, currentStack) {
{
var React = require('react');
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; // Defensive in case this is fired before React is initialized.
if (ReactSharedInternals != null && ReactSharedInternals.getCurrentStack) {
var stack = ReactSharedInternals.getCurrentStack();
var stack = ReactSharedInternals.getCurrentStack(currentStack);
if (stack !== '') {
format += '%s';
@@ -1007,18 +1007,28 @@ function describeFunctionComponentFrame(fn) {
/** @noinline */
function callComponentInDEV(Component, props, secondArg) {
var wasRendering = isRendering;
setIsRendering(true);
var result = Component(props, secondArg);
setIsRendering(false);
return result;
try {
var result = Component(props, secondArg);
return result;
} finally {
setIsRendering(wasRendering);
}
}
/** @noinline */
function callRenderInDEV(instance) {
var wasRendering = isRendering;
setIsRendering(true);
var result = instance.render();
setIsRendering(false);
return result;
try {
var result = instance.render();
return result;
} finally {
setIsRendering(wasRendering);
}
}
/** @noinline */
@@ -1110,7 +1120,7 @@ function getCurrentFiberOwnerNameInDevOrNull() {
return null;
}
function getCurrentFiberStackInDev() {
function getCurrentFiberStackInDev(stack) {
{
if (current === null) {
return '';
+22 -12
View File
@@ -60,7 +60,7 @@ function _assertThisInitialized(self) {
return self;
}
var ReactVersion = '19.0.0-www-modern-9598c41a20-20240603';
var ReactVersion = '19.0.0-www-modern-4dcdf21325-20240603';
var LegacyRoot = 0;
var ConcurrentRoot = 1;
@@ -81,7 +81,7 @@ function warn(format) {
args[_key - 1] = arguments[_key];
}
printWarning('warn', format, args);
printWarning('warn', format, args, new Error('react-stack-top-frame'));
}
}
}
@@ -92,19 +92,19 @@ function error(format) {
args[_key2 - 1] = arguments[_key2];
}
printWarning('error', format, args);
printWarning('error', format, args, new Error('react-stack-top-frame'));
}
}
}
function printWarning(level, format, args) {
function printWarning(level, format, args, currentStack) {
{
var React = require('react');
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; // Defensive in case this is fired before React is initialized.
if (ReactSharedInternals != null && ReactSharedInternals.getCurrentStack) {
var stack = ReactSharedInternals.getCurrentStack();
var stack = ReactSharedInternals.getCurrentStack(currentStack);
if (stack !== '') {
format += '%s';
@@ -1009,18 +1009,28 @@ function describeFunctionComponentFrame(fn) {
/** @noinline */
function callComponentInDEV(Component, props, secondArg) {
var wasRendering = isRendering;
setIsRendering(true);
var result = Component(props, secondArg);
setIsRendering(false);
return result;
try {
var result = Component(props, secondArg);
return result;
} finally {
setIsRendering(wasRendering);
}
}
/** @noinline */
function callRenderInDEV(instance) {
var wasRendering = isRendering;
setIsRendering(true);
var result = instance.render();
setIsRendering(false);
return result;
try {
var result = instance.render();
return result;
} finally {
setIsRendering(wasRendering);
}
}
/** @noinline */
@@ -1112,7 +1122,7 @@ function getCurrentFiberOwnerNameInDevOrNull() {
return null;
}
function getCurrentFiberStackInDev() {
function getCurrentFiberStackInDev(stack) {
{
if (current === null) {
return '';
@@ -10678,7 +10678,7 @@ var slice = Array.prototype.slice,
return null;
},
bundleType: 0,
version: "19.0.0-www-classic-9598c41a20-20240603",
version: "19.0.0-www-classic-4dcdf21325-20240603",
rendererPackageName: "react-art"
};
var internals$jscomp$inline_1371 = {
@@ -10709,7 +10709,7 @@ var internals$jscomp$inline_1371 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-9598c41a20-20240603"
reconcilerVersion: "19.0.0-www-classic-4dcdf21325-20240603"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1372 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -10153,7 +10153,7 @@ var slice = Array.prototype.slice,
return null;
},
bundleType: 0,
version: "19.0.0-www-modern-9598c41a20-20240603",
version: "19.0.0-www-modern-4dcdf21325-20240603",
rendererPackageName: "react-art"
};
var internals$jscomp$inline_1357 = {
@@ -10184,7 +10184,7 @@ var internals$jscomp$inline_1357 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-9598c41a20-20240603"
reconcilerVersion: "19.0.0-www-modern-4dcdf21325-20240603"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1358 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -28,19 +28,19 @@ function error(format) {
args[_key2 - 1] = arguments[_key2];
}
printWarning('error', format, args);
printWarning('error', format, args, new Error('react-stack-top-frame'));
}
}
}
function printWarning(level, format, args) {
function printWarning(level, format, args, currentStack) {
{
var React = require('react');
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; // Defensive in case this is fired before React is initialized.
if (ReactSharedInternals != null && ReactSharedInternals.getCurrentStack) {
var stack = ReactSharedInternals.getCurrentStack();
var stack = ReactSharedInternals.getCurrentStack(currentStack);
if (stack !== '') {
format += '%s';
@@ -28,19 +28,19 @@ function error(format) {
args[_key2 - 1] = arguments[_key2];
}
printWarning('error', format, args);
printWarning('error', format, args, new Error('react-stack-top-frame'));
}
}
}
function printWarning(level, format, args) {
function printWarning(level, format, args, currentStack) {
{
var React = require('react');
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; // Defensive in case this is fired before React is initialized.
if (ReactSharedInternals != null && ReactSharedInternals.getCurrentStack) {
var stack = ReactSharedInternals.getCurrentStack();
var stack = ReactSharedInternals.getCurrentStack(currentStack);
if (stack !== '') {
format += '%s';
+22 -12
View File
@@ -43,7 +43,7 @@ function warn(format) {
args[_key - 1] = arguments[_key];
}
printWarning('warn', format, args);
printWarning('warn', format, args, new Error('react-stack-top-frame'));
}
}
}
@@ -54,19 +54,19 @@ function error(format) {
args[_key2 - 1] = arguments[_key2];
}
printWarning('error', format, args);
printWarning('error', format, args, new Error('react-stack-top-frame'));
}
}
}
function printWarning(level, format, args) {
function printWarning(level, format, args, currentStack) {
{
var React = require('react');
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; // Defensive in case this is fired before React is initialized.
if (ReactSharedInternals != null && ReactSharedInternals.getCurrentStack) {
var stack = ReactSharedInternals.getCurrentStack();
var stack = ReactSharedInternals.getCurrentStack(currentStack);
if (stack !== '') {
format += '%s';
@@ -974,18 +974,28 @@ function describeFunctionComponentFrame(fn) {
/** @noinline */
function callComponentInDEV(Component, props, secondArg) {
var wasRendering = isRendering;
setIsRendering(true);
var result = Component(props, secondArg);
setIsRendering(false);
return result;
try {
var result = Component(props, secondArg);
return result;
} finally {
setIsRendering(wasRendering);
}
}
/** @noinline */
function callRenderInDEV(instance) {
var wasRendering = isRendering;
setIsRendering(true);
var result = instance.render();
setIsRendering(false);
return result;
try {
var result = instance.render();
return result;
} finally {
setIsRendering(wasRendering);
}
}
/** @noinline */
@@ -1087,7 +1097,7 @@ function getCurrentParentStackInDev() {
}
}
function getCurrentFiberStackInDev() {
function getCurrentFiberStackInDev(stack) {
{
if (current === null) {
return '';
@@ -31165,7 +31175,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
return root;
}
var ReactVersion = '19.0.0-www-classic-9598c41a20-20240603';
var ReactVersion = '19.0.0-www-classic-4dcdf21325-20240603';
function createPortal$1(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
implementation) {
+22 -12
View File
@@ -43,7 +43,7 @@ function warn(format) {
args[_key - 1] = arguments[_key];
}
printWarning('warn', format, args);
printWarning('warn', format, args, new Error('react-stack-top-frame'));
}
}
}
@@ -54,19 +54,19 @@ function error(format) {
args[_key2 - 1] = arguments[_key2];
}
printWarning('error', format, args);
printWarning('error', format, args, new Error('react-stack-top-frame'));
}
}
}
function printWarning(level, format, args) {
function printWarning(level, format, args, currentStack) {
{
var React = require('react');
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; // Defensive in case this is fired before React is initialized.
if (ReactSharedInternals != null && ReactSharedInternals.getCurrentStack) {
var stack = ReactSharedInternals.getCurrentStack();
var stack = ReactSharedInternals.getCurrentStack(currentStack);
if (stack !== '') {
format += '%s';
@@ -973,18 +973,28 @@ function describeFunctionComponentFrame(fn) {
/** @noinline */
function callComponentInDEV(Component, props, secondArg) {
var wasRendering = isRendering;
setIsRendering(true);
var result = Component(props, secondArg);
setIsRendering(false);
return result;
try {
var result = Component(props, secondArg);
return result;
} finally {
setIsRendering(wasRendering);
}
}
/** @noinline */
function callRenderInDEV(instance) {
var wasRendering = isRendering;
setIsRendering(true);
var result = instance.render();
setIsRendering(false);
return result;
try {
var result = instance.render();
return result;
} finally {
setIsRendering(wasRendering);
}
}
/** @noinline */
@@ -1086,7 +1096,7 @@ function getCurrentParentStackInDev() {
}
}
function getCurrentFiberStackInDev() {
function getCurrentFiberStackInDev(stack) {
{
if (current === null) {
return '';
@@ -30342,7 +30352,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
return root;
}
var ReactVersion = '19.0.0-www-modern-9598c41a20-20240603';
var ReactVersion = '19.0.0-www-modern-4dcdf21325-20240603';
function createPortal$1(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
implementation) {
@@ -17085,14 +17085,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1754 = React.version;
if (
"19.0.0-www-classic-9598c41a20-20240603" !==
"19.0.0-www-classic-4dcdf21325-20240603" !==
isomorphicReactPackageVersion$jscomp$inline_1754
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1754,
"19.0.0-www-classic-9598c41a20-20240603"
"19.0.0-www-classic-4dcdf21325-20240603"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -17111,7 +17111,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1761 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-classic-9598c41a20-20240603",
version: "19.0.0-www-classic-4dcdf21325-20240603",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2205 = {
@@ -17141,7 +17141,7 @@ var internals$jscomp$inline_2205 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-9598c41a20-20240603"
reconcilerVersion: "19.0.0-www-classic-4dcdf21325-20240603"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2206 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17645,4 +17645,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-9598c41a20-20240603";
exports.version = "19.0.0-www-classic-4dcdf21325-20240603";
@@ -16448,14 +16448,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1725 = React.version;
if (
"19.0.0-www-modern-9598c41a20-20240603" !==
"19.0.0-www-modern-4dcdf21325-20240603" !==
isomorphicReactPackageVersion$jscomp$inline_1725
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1725,
"19.0.0-www-modern-9598c41a20-20240603"
"19.0.0-www-modern-4dcdf21325-20240603"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -16474,7 +16474,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1727 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-modern-9598c41a20-20240603",
version: "19.0.0-www-modern-4dcdf21325-20240603",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2196 = {
@@ -16504,7 +16504,7 @@ var internals$jscomp$inline_2196 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-9598c41a20-20240603"
reconcilerVersion: "19.0.0-www-modern-4dcdf21325-20240603"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2197 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -16878,4 +16878,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-9598c41a20-20240603";
exports.version = "19.0.0-www-modern-4dcdf21325-20240603";
@@ -17852,14 +17852,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1841 = React.version;
if (
"19.0.0-www-classic-9598c41a20-20240603" !==
"19.0.0-www-classic-4dcdf21325-20240603" !==
isomorphicReactPackageVersion$jscomp$inline_1841
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1841,
"19.0.0-www-classic-9598c41a20-20240603"
"19.0.0-www-classic-4dcdf21325-20240603"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -17878,7 +17878,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1848 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-classic-9598c41a20-20240603",
version: "19.0.0-www-classic-4dcdf21325-20240603",
rendererPackageName: "react-dom"
};
(function (internals) {
@@ -17922,7 +17922,7 @@ var devToolsConfig$jscomp$inline_1848 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-9598c41a20-20240603"
reconcilerVersion: "19.0.0-www-classic-4dcdf21325-20240603"
});
function ReactDOMRoot(internalRoot) {
this._internalRoot = internalRoot;
@@ -18413,7 +18413,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-9598c41a20-20240603";
exports.version = "19.0.0-www-classic-4dcdf21325-20240603";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -17198,14 +17198,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1812 = React.version;
if (
"19.0.0-www-modern-9598c41a20-20240603" !==
"19.0.0-www-modern-4dcdf21325-20240603" !==
isomorphicReactPackageVersion$jscomp$inline_1812
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1812,
"19.0.0-www-modern-9598c41a20-20240603"
"19.0.0-www-modern-4dcdf21325-20240603"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -17224,7 +17224,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1814 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-modern-9598c41a20-20240603",
version: "19.0.0-www-modern-4dcdf21325-20240603",
rendererPackageName: "react-dom"
};
(function (internals) {
@@ -17268,7 +17268,7 @@ var devToolsConfig$jscomp$inline_1814 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-9598c41a20-20240603"
reconcilerVersion: "19.0.0-www-modern-4dcdf21325-20240603"
});
function ReactDOMRoot(internalRoot) {
this._internalRoot = internalRoot;
@@ -17629,7 +17629,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-9598c41a20-20240603";
exports.version = "19.0.0-www-modern-4dcdf21325-20240603";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -19,7 +19,7 @@ if (__DEV__) {
var React = require('react');
var ReactDOM = require('react-dom');
var ReactVersion = '19.0.0-www-classic-9598c41a20-20240603';
var ReactVersion = '19.0.0-www-classic-4dcdf21325-20240603';
// This refers to a WWW module.
var warningWWW = require('warning');
@@ -30,7 +30,7 @@ function warn(format) {
args[_key - 1] = arguments[_key];
}
printWarning('warn', format, args);
printWarning('warn', format, args, new Error('react-stack-top-frame'));
}
}
}
@@ -41,19 +41,19 @@ function error(format) {
args[_key2 - 1] = arguments[_key2];
}
printWarning('error', format, args);
printWarning('error', format, args, new Error('react-stack-top-frame'));
}
}
}
function printWarning(level, format, args) {
function printWarning(level, format, args, currentStack) {
{
var React = require('react');
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; // Defensive in case this is fired before React is initialized.
if (ReactSharedInternals != null && ReactSharedInternals.getCurrentStack) {
var stack = ReactSharedInternals.getCurrentStack();
var stack = ReactSharedInternals.getCurrentStack(currentStack);
if (stack !== '') {
format += '%s';
@@ -19,7 +19,7 @@ if (__DEV__) {
var React = require('react');
var ReactDOM = require('react-dom');
var ReactVersion = '19.0.0-www-modern-9598c41a20-20240603';
var ReactVersion = '19.0.0-www-modern-4dcdf21325-20240603';
// This refers to a WWW module.
var warningWWW = require('warning');
@@ -30,7 +30,7 @@ function warn(format) {
args[_key - 1] = arguments[_key];
}
printWarning('warn', format, args);
printWarning('warn', format, args, new Error('react-stack-top-frame'));
}
}
}
@@ -41,19 +41,19 @@ function error(format) {
args[_key2 - 1] = arguments[_key2];
}
printWarning('error', format, args);
printWarning('error', format, args, new Error('react-stack-top-frame'));
}
}
}
function printWarning(level, format, args) {
function printWarning(level, format, args, currentStack) {
{
var React = require('react');
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; // Defensive in case this is fired before React is initialized.
if (ReactSharedInternals != null && ReactSharedInternals.getCurrentStack) {
var stack = ReactSharedInternals.getCurrentStack();
var stack = ReactSharedInternals.getCurrentStack(currentStack);
if (stack !== '') {
format += '%s';
@@ -5699,4 +5699,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-9598c41a20-20240603";
exports.version = "19.0.0-www-classic-4dcdf21325-20240603";
@@ -5677,4 +5677,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-9598c41a20-20240603";
exports.version = "19.0.0-www-modern-4dcdf21325-20240603";
@@ -28,7 +28,7 @@ function warn(format) {
args[_key - 1] = arguments[_key];
}
printWarning('warn', format, args);
printWarning('warn', format, args, new Error('react-stack-top-frame'));
}
}
}
@@ -39,19 +39,19 @@ function error(format) {
args[_key2 - 1] = arguments[_key2];
}
printWarning('error', format, args);
printWarning('error', format, args, new Error('react-stack-top-frame'));
}
}
}
function printWarning(level, format, args) {
function printWarning(level, format, args, currentStack) {
{
var React = require('react');
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; // Defensive in case this is fired before React is initialized.
if (ReactSharedInternals != null && ReactSharedInternals.getCurrentStack) {
var stack = ReactSharedInternals.getCurrentStack();
var stack = ReactSharedInternals.getCurrentStack(currentStack);
if (stack !== '') {
format += '%s';
@@ -37,7 +37,7 @@ function warn(format) {
args[_key - 1] = arguments[_key];
}
printWarning('warn', format, args);
printWarning('warn', format, args, new Error('react-stack-top-frame'));
}
}
}
@@ -48,19 +48,19 @@ function error(format) {
args[_key2 - 1] = arguments[_key2];
}
printWarning('error', format, args);
printWarning('error', format, args, new Error('react-stack-top-frame'));
}
}
}
function printWarning(level, format, args) {
function printWarning(level, format, args, currentStack) {
{
var React = require('react');
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; // Defensive in case this is fired before React is initialized.
if (ReactSharedInternals != null && ReactSharedInternals.getCurrentStack) {
var stack = ReactSharedInternals.getCurrentStack();
var stack = ReactSharedInternals.getCurrentStack(currentStack);
if (stack !== '') {
format += '%s';
@@ -968,18 +968,28 @@ function describeFunctionComponentFrame(fn) {
/** @noinline */
function callComponentInDEV(Component, props, secondArg) {
var wasRendering = isRendering;
setIsRendering(true);
var result = Component(props, secondArg);
setIsRendering(false);
return result;
try {
var result = Component(props, secondArg);
return result;
} finally {
setIsRendering(wasRendering);
}
}
/** @noinline */
function callRenderInDEV(instance) {
var wasRendering = isRendering;
setIsRendering(true);
var result = instance.render();
setIsRendering(false);
return result;
try {
var result = instance.render();
return result;
} finally {
setIsRendering(wasRendering);
}
}
/** @noinline */
@@ -1081,7 +1091,7 @@ function getCurrentParentStackInDev() {
}
}
function getCurrentFiberStackInDev() {
function getCurrentFiberStackInDev(stack) {
{
if (current === null) {
return '';
@@ -31731,7 +31741,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
return root;
}
var ReactVersion = '19.0.0-www-classic-9598c41a20-20240603';
var ReactVersion = '19.0.0-www-classic-4dcdf21325-20240603';
function createPortal$1(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
implementation) {
@@ -37,7 +37,7 @@ function warn(format) {
args[_key - 1] = arguments[_key];
}
printWarning('warn', format, args);
printWarning('warn', format, args, new Error('react-stack-top-frame'));
}
}
}
@@ -48,19 +48,19 @@ function error(format) {
args[_key2 - 1] = arguments[_key2];
}
printWarning('error', format, args);
printWarning('error', format, args, new Error('react-stack-top-frame'));
}
}
}
function printWarning(level, format, args) {
function printWarning(level, format, args, currentStack) {
{
var React = require('react');
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; // Defensive in case this is fired before React is initialized.
if (ReactSharedInternals != null && ReactSharedInternals.getCurrentStack) {
var stack = ReactSharedInternals.getCurrentStack();
var stack = ReactSharedInternals.getCurrentStack(currentStack);
if (stack !== '') {
format += '%s';
@@ -967,18 +967,28 @@ function describeFunctionComponentFrame(fn) {
/** @noinline */
function callComponentInDEV(Component, props, secondArg) {
var wasRendering = isRendering;
setIsRendering(true);
var result = Component(props, secondArg);
setIsRendering(false);
return result;
try {
var result = Component(props, secondArg);
return result;
} finally {
setIsRendering(wasRendering);
}
}
/** @noinline */
function callRenderInDEV(instance) {
var wasRendering = isRendering;
setIsRendering(true);
var result = instance.render();
setIsRendering(false);
return result;
try {
var result = instance.render();
return result;
} finally {
setIsRendering(wasRendering);
}
}
/** @noinline */
@@ -1080,7 +1090,7 @@ function getCurrentParentStackInDev() {
}
}
function getCurrentFiberStackInDev() {
function getCurrentFiberStackInDev(stack) {
{
if (current === null) {
return '';
@@ -30908,7 +30918,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
return root;
}
var ReactVersion = '19.0.0-www-modern-9598c41a20-20240603';
var ReactVersion = '19.0.0-www-modern-4dcdf21325-20240603';
function createPortal$1(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
implementation) {
@@ -17414,14 +17414,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1784 = React.version;
if (
"19.0.0-www-classic-9598c41a20-20240603" !==
"19.0.0-www-classic-4dcdf21325-20240603" !==
isomorphicReactPackageVersion$jscomp$inline_1784
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1784,
"19.0.0-www-classic-9598c41a20-20240603"
"19.0.0-www-classic-4dcdf21325-20240603"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -17440,7 +17440,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1791 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-classic-9598c41a20-20240603",
version: "19.0.0-www-classic-4dcdf21325-20240603",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2240 = {
@@ -17470,7 +17470,7 @@ var internals$jscomp$inline_2240 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-9598c41a20-20240603"
reconcilerVersion: "19.0.0-www-classic-4dcdf21325-20240603"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2241 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -18125,4 +18125,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-9598c41a20-20240603";
exports.version = "19.0.0-www-classic-4dcdf21325-20240603";
@@ -16836,14 +16836,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1755 = React.version;
if (
"19.0.0-www-modern-9598c41a20-20240603" !==
"19.0.0-www-modern-4dcdf21325-20240603" !==
isomorphicReactPackageVersion$jscomp$inline_1755
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1755,
"19.0.0-www-modern-9598c41a20-20240603"
"19.0.0-www-modern-4dcdf21325-20240603"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -16862,7 +16862,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1757 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-modern-9598c41a20-20240603",
version: "19.0.0-www-modern-4dcdf21325-20240603",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2231 = {
@@ -16892,7 +16892,7 @@ var internals$jscomp$inline_2231 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-9598c41a20-20240603"
reconcilerVersion: "19.0.0-www-modern-4dcdf21325-20240603"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2232 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17417,4 +17417,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-9598c41a20-20240603";
exports.version = "19.0.0-www-modern-4dcdf21325-20240603";
@@ -36,7 +36,7 @@ function warn(format) {
args[_key - 1] = arguments[_key];
}
printWarning('warn', format, args);
printWarning('warn', format, args, new Error('react-stack-top-frame'));
}
}
}
@@ -47,19 +47,19 @@ function error(format) {
args[_key2 - 1] = arguments[_key2];
}
printWarning('error', format, args);
printWarning('error', format, args, new Error('react-stack-top-frame'));
}
}
}
function printWarning(level, format, args) {
function printWarning(level, format, args, currentStack) {
{
var React = require('react');
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; // Defensive in case this is fired before React is initialized.
if (ReactSharedInternals != null && ReactSharedInternals.getCurrentStack) {
var stack = ReactSharedInternals.getCurrentStack();
var stack = ReactSharedInternals.getCurrentStack(currentStack);
if (stack !== '') {
format += '%s';
@@ -968,18 +968,28 @@ function describeFunctionComponentFrame(fn) {
/** @noinline */
function callComponentInDEV(Component, props, secondArg) {
var wasRendering = isRendering;
setIsRendering(true);
var result = Component(props, secondArg);
setIsRendering(false);
return result;
try {
var result = Component(props, secondArg);
return result;
} finally {
setIsRendering(wasRendering);
}
}
/** @noinline */
function callRenderInDEV(instance) {
var wasRendering = isRendering;
setIsRendering(true);
var result = instance.render();
setIsRendering(false);
return result;
try {
var result = instance.render();
return result;
} finally {
setIsRendering(wasRendering);
}
}
/** @noinline */
@@ -1071,7 +1081,7 @@ function getCurrentFiberOwnerNameInDevOrNull() {
return null;
}
function getCurrentFiberStackInDev() {
function getCurrentFiberStackInDev(stack) {
{
if (current === null) {
return '';
@@ -28933,7 +28943,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
return root;
}
var ReactVersion = '19.0.0-www-classic-9598c41a20-20240603';
var ReactVersion = '19.0.0-www-classic-4dcdf21325-20240603';
/*
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
@@ -36,7 +36,7 @@ function warn(format) {
args[_key - 1] = arguments[_key];
}
printWarning('warn', format, args);
printWarning('warn', format, args, new Error('react-stack-top-frame'));
}
}
}
@@ -47,19 +47,19 @@ function error(format) {
args[_key2 - 1] = arguments[_key2];
}
printWarning('error', format, args);
printWarning('error', format, args, new Error('react-stack-top-frame'));
}
}
}
function printWarning(level, format, args) {
function printWarning(level, format, args, currentStack) {
{
var React = require('react');
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; // Defensive in case this is fired before React is initialized.
if (ReactSharedInternals != null && ReactSharedInternals.getCurrentStack) {
var stack = ReactSharedInternals.getCurrentStack();
var stack = ReactSharedInternals.getCurrentStack(currentStack);
if (stack !== '') {
format += '%s';
@@ -970,18 +970,28 @@ function describeFunctionComponentFrame(fn) {
/** @noinline */
function callComponentInDEV(Component, props, secondArg) {
var wasRendering = isRendering;
setIsRendering(true);
var result = Component(props, secondArg);
setIsRendering(false);
return result;
try {
var result = Component(props, secondArg);
return result;
} finally {
setIsRendering(wasRendering);
}
}
/** @noinline */
function callRenderInDEV(instance) {
var wasRendering = isRendering;
setIsRendering(true);
var result = instance.render();
setIsRendering(false);
return result;
try {
var result = instance.render();
return result;
} finally {
setIsRendering(wasRendering);
}
}
/** @noinline */
@@ -1073,7 +1083,7 @@ function getCurrentFiberOwnerNameInDevOrNull() {
return null;
}
function getCurrentFiberStackInDev() {
function getCurrentFiberStackInDev(stack) {
{
if (current === null) {
return '';
@@ -28201,7 +28211,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
return root;
}
var ReactVersion = '19.0.0-www-modern-9598c41a20-20240603';
var ReactVersion = '19.0.0-www-modern-4dcdf21325-20240603';
/*
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
@@ -12665,7 +12665,7 @@ module.exports = function ($$$config) {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-9598c41a20-20240603"
reconcilerVersion: "19.0.0-www-classic-4dcdf21325-20240603"
};
if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)
devToolsConfig = !1;
@@ -12178,7 +12178,7 @@ module.exports = function ($$$config) {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-9598c41a20-20240603"
reconcilerVersion: "19.0.0-www-modern-4dcdf21325-20240603"
};
if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)
devToolsConfig = !1;
@@ -29,7 +29,7 @@ function warn(format) {
args[_key - 1] = arguments[_key];
}
printWarning('warn', format, args);
printWarning('warn', format, args, new Error('react-stack-top-frame'));
}
}
}
@@ -40,19 +40,19 @@ function error(format) {
args[_key2 - 1] = arguments[_key2];
}
printWarning('error', format, args);
printWarning('error', format, args, new Error('react-stack-top-frame'));
}
}
}
function printWarning(level, format, args) {
function printWarning(level, format, args, currentStack) {
{
var React = require('react');
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; // Defensive in case this is fired before React is initialized.
if (ReactSharedInternals != null && ReactSharedInternals.getCurrentStack) {
var stack = ReactSharedInternals.getCurrentStack();
var stack = ReactSharedInternals.getCurrentStack(currentStack);
if (stack !== '') {
format += '%s';
@@ -938,18 +938,28 @@ function describeFunctionComponentFrame(fn) {
/** @noinline */
function callComponentInDEV(Component, props, secondArg) {
var wasRendering = isRendering;
setIsRendering(true);
var result = Component(props, secondArg);
setIsRendering(false);
return result;
try {
var result = Component(props, secondArg);
return result;
} finally {
setIsRendering(wasRendering);
}
}
/** @noinline */
function callRenderInDEV(instance) {
var wasRendering = isRendering;
setIsRendering(true);
var result = instance.render();
setIsRendering(false);
return result;
try {
var result = instance.render();
return result;
} finally {
setIsRendering(wasRendering);
}
}
/** @noinline */
@@ -1041,7 +1051,7 @@ function getCurrentFiberOwnerNameInDevOrNull() {
return null;
}
function getCurrentFiberStackInDev() {
function getCurrentFiberStackInDev(stack) {
{
if (current === null) {
return '';
@@ -23412,7 +23422,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
return root;
}
var ReactVersion = '19.0.0-www-classic-9598c41a20-20240603';
var ReactVersion = '19.0.0-www-classic-4dcdf21325-20240603';
/*
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
@@ -29,7 +29,7 @@ function warn(format) {
args[_key - 1] = arguments[_key];
}
printWarning('warn', format, args);
printWarning('warn', format, args, new Error('react-stack-top-frame'));
}
}
}
@@ -40,19 +40,19 @@ function error(format) {
args[_key2 - 1] = arguments[_key2];
}
printWarning('error', format, args);
printWarning('error', format, args, new Error('react-stack-top-frame'));
}
}
}
function printWarning(level, format, args) {
function printWarning(level, format, args, currentStack) {
{
var React = require('react');
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; // Defensive in case this is fired before React is initialized.
if (ReactSharedInternals != null && ReactSharedInternals.getCurrentStack) {
var stack = ReactSharedInternals.getCurrentStack();
var stack = ReactSharedInternals.getCurrentStack(currentStack);
if (stack !== '') {
format += '%s';
@@ -938,18 +938,28 @@ function describeFunctionComponentFrame(fn) {
/** @noinline */
function callComponentInDEV(Component, props, secondArg) {
var wasRendering = isRendering;
setIsRendering(true);
var result = Component(props, secondArg);
setIsRendering(false);
return result;
try {
var result = Component(props, secondArg);
return result;
} finally {
setIsRendering(wasRendering);
}
}
/** @noinline */
function callRenderInDEV(instance) {
var wasRendering = isRendering;
setIsRendering(true);
var result = instance.render();
setIsRendering(false);
return result;
try {
var result = instance.render();
return result;
} finally {
setIsRendering(wasRendering);
}
}
/** @noinline */
@@ -1041,7 +1051,7 @@ function getCurrentFiberOwnerNameInDevOrNull() {
return null;
}
function getCurrentFiberStackInDev() {
function getCurrentFiberStackInDev(stack) {
{
if (current === null) {
return '';
@@ -23412,7 +23422,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
return root;
}
var ReactVersion = '19.0.0-www-modern-9598c41a20-20240603';
var ReactVersion = '19.0.0-www-modern-4dcdf21325-20240603';
/*
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
+1 -1
View File
@@ -1 +1 @@
19.0.0-www-classic-9598c41a20-20240603
19.0.0-www-classic-4dcdf21325-20240603
+1 -1
View File
@@ -1 +1 @@
19.0.0-www-modern-9598c41a20-20240603
19.0.0-www-modern-4dcdf21325-20240603