Skip to content

Commit a3323b7

Browse files
committed
[Fizz] Implement debugInfo (#30174)
Stacked on #30170. This lets us track Server Component parent stacks in Fizz which also lets us track the correct owner stack for lazy. In Fiber we're careful not to make any DEV only fibers but since the ReactFizzComponentStack data structures just exist for debug meta data anyway we can just expand on that. DiffTrain build for [cfb8945](cfb8945)
1 parent 3ae0357 commit a3323b7

35 files changed

+828
-687
lines changed

compiled/facebook-www/REVISION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e60063d9e7d346e92a5af42975a2fe7dd306f86f
1+
cfb8945f511add040e1d5427d9961337f98f7618
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e60063d9e7d346e92a5af42975a2fe7dd306f86f
1+
cfb8945f511add040e1d5427d9961337f98f7618

compiled/facebook-www/React-dev.classic.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1991,7 +1991,7 @@ __DEV__ &&
19911991
exports.useTransition = function () {
19921992
return resolveDispatcher().useTransition();
19931993
};
1994-
exports.version = "19.0.0-www-classic-e60063d9e7-20240702";
1994+
exports.version = "19.0.0-www-classic-cfb8945f51-20240702";
19951995
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
19961996
"function" ===
19971997
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-dev.modern.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1971,7 +1971,7 @@ __DEV__ &&
19711971
exports.useTransition = function () {
19721972
return resolveDispatcher().useTransition();
19731973
};
1974-
exports.version = "19.0.0-www-modern-e60063d9e7-20240702";
1974+
exports.version = "19.0.0-www-modern-cfb8945f51-20240702";
19751975
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
19761976
"function" ===
19771977
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-prod.classic.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -669,4 +669,4 @@ exports.useSyncExternalStore = function (
669669
exports.useTransition = function () {
670670
return ReactSharedInternals.H.useTransition();
671671
};
672-
exports.version = "19.0.0-www-classic-e60063d9e7-20240702";
672+
exports.version = "19.0.0-www-classic-cfb8945f51-20240702";

compiled/facebook-www/React-prod.modern.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -669,4 +669,4 @@ exports.useSyncExternalStore = function (
669669
exports.useTransition = function () {
670670
return ReactSharedInternals.H.useTransition();
671671
};
672-
exports.version = "19.0.0-www-modern-e60063d9e7-20240702";
672+
exports.version = "19.0.0-www-modern-cfb8945f51-20240702";

compiled/facebook-www/React-profiling.classic.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ exports.useSyncExternalStore = function (
673673
exports.useTransition = function () {
674674
return ReactSharedInternals.H.useTransition();
675675
};
676-
exports.version = "19.0.0-www-classic-e60063d9e7-20240702";
676+
exports.version = "19.0.0-www-classic-cfb8945f51-20240702";
677677
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
678678
"function" ===
679679
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-profiling.modern.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ exports.useSyncExternalStore = function (
673673
exports.useTransition = function () {
674674
return ReactSharedInternals.H.useTransition();
675675
};
676-
exports.version = "19.0.0-www-modern-e60063d9e7-20240702";
676+
exports.version = "19.0.0-www-modern-cfb8945f51-20240702";
677677
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
678678
"function" ===
679679
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactART-dev.classic.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -16934,14 +16934,14 @@ __DEV__ &&
1693416934
scheduleRoot: scheduleRoot,
1693516935
setRefreshHandler: setRefreshHandler,
1693616936
getCurrentFiber: getCurrentFiberForDevTools,
16937-
reconcilerVersion: "19.0.0-www-classic-e60063d9e7-20240702"
16937+
reconcilerVersion: "19.0.0-www-classic-cfb8945f51-20240702"
1693816938
});
1693916939
})({
1694016940
findFiberByHostInstance: function () {
1694116941
return null;
1694216942
},
1694316943
bundleType: 1,
16944-
version: "19.0.0-www-classic-e60063d9e7-20240702",
16944+
version: "19.0.0-www-classic-cfb8945f51-20240702",
1694516945
rendererPackageName: "react-art"
1694616946
});
1694716947
var ClippingRectangle = TYPES.CLIPPING_RECTANGLE,

compiled/facebook-www/ReactART-dev.modern.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -16364,14 +16364,14 @@ __DEV__ &&
1636416364
scheduleRoot: scheduleRoot,
1636516365
setRefreshHandler: setRefreshHandler,
1636616366
getCurrentFiber: getCurrentFiberForDevTools,
16367-
reconcilerVersion: "19.0.0-www-modern-e60063d9e7-20240702"
16367+
reconcilerVersion: "19.0.0-www-modern-cfb8945f51-20240702"
1636816368
});
1636916369
})({
1637016370
findFiberByHostInstance: function () {
1637116371
return null;
1637216372
},
1637316373
bundleType: 1,
16374-
version: "19.0.0-www-modern-e60063d9e7-20240702",
16374+
version: "19.0.0-www-modern-cfb8945f51-20240702",
1637516375
rendererPackageName: "react-art"
1637616376
});
1637716377
var ClippingRectangle = TYPES.CLIPPING_RECTANGLE,

compiled/facebook-www/ReactART-prod.classic.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10711,7 +10711,7 @@ var slice = Array.prototype.slice,
1071110711
return null;
1071210712
},
1071310713
bundleType: 0,
10714-
version: "19.0.0-www-classic-e60063d9e7-20240702",
10714+
version: "19.0.0-www-classic-cfb8945f51-20240702",
1071510715
rendererPackageName: "react-art"
1071610716
};
1071710717
var internals$jscomp$inline_1386 = {
@@ -10742,7 +10742,7 @@ var internals$jscomp$inline_1386 = {
1074210742
scheduleRoot: null,
1074310743
setRefreshHandler: null,
1074410744
getCurrentFiber: null,
10745-
reconcilerVersion: "19.0.0-www-classic-e60063d9e7-20240702"
10745+
reconcilerVersion: "19.0.0-www-classic-cfb8945f51-20240702"
1074610746
};
1074710747
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1074810748
var hook$jscomp$inline_1387 = __REACT_DEVTOOLS_GLOBAL_HOOK__;

compiled/facebook-www/ReactART-prod.modern.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10164,7 +10164,7 @@ var slice = Array.prototype.slice,
1016410164
return null;
1016510165
},
1016610166
bundleType: 0,
10167-
version: "19.0.0-www-modern-e60063d9e7-20240702",
10167+
version: "19.0.0-www-modern-cfb8945f51-20240702",
1016810168
rendererPackageName: "react-art"
1016910169
};
1017010170
var internals$jscomp$inline_1372 = {
@@ -10195,7 +10195,7 @@ var internals$jscomp$inline_1372 = {
1019510195
scheduleRoot: null,
1019610196
setRefreshHandler: null,
1019710197
getCurrentFiber: null,
10198-
reconcilerVersion: "19.0.0-www-modern-e60063d9e7-20240702"
10198+
reconcilerVersion: "19.0.0-www-modern-cfb8945f51-20240702"
1019910199
};
1020010200
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1020110201
var hook$jscomp$inline_1373 = __REACT_DEVTOOLS_GLOBAL_HOOK__;

compiled/facebook-www/ReactDOM-dev.classic.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -27370,11 +27370,11 @@ __DEV__ &&
2737027370
: flushSyncErrorInBuildsThatSupportLegacyMode;
2737127371
(function () {
2737227372
var isomorphicReactPackageVersion = React.version;
27373-
if ("19.0.0-www-classic-e60063d9e7-20240702" !== isomorphicReactPackageVersion)
27373+
if ("19.0.0-www-classic-cfb8945f51-20240702" !== isomorphicReactPackageVersion)
2737427374
throw Error(
2737527375
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
2737627376
(isomorphicReactPackageVersion +
27377-
"\n - react-dom: 19.0.0-www-classic-e60063d9e7-20240702\nLearn more: https://react.dev/warnings/version-mismatch")
27377+
"\n - react-dom: 19.0.0-www-classic-cfb8945f51-20240702\nLearn more: https://react.dev/warnings/version-mismatch")
2737827378
);
2737927379
})();
2738027380
("function" === typeof Map &&
@@ -27440,12 +27440,12 @@ __DEV__ &&
2744027440
scheduleRoot: scheduleRoot,
2744127441
setRefreshHandler: setRefreshHandler,
2744227442
getCurrentFiber: getCurrentFiberForDevTools,
27443-
reconcilerVersion: "19.0.0-www-classic-e60063d9e7-20240702"
27443+
reconcilerVersion: "19.0.0-www-classic-cfb8945f51-20240702"
2744427444
});
2744527445
})({
2744627446
findFiberByHostInstance: getClosestInstanceFromNode,
2744727447
bundleType: 1,
27448-
version: "19.0.0-www-classic-e60063d9e7-20240702",
27448+
version: "19.0.0-www-classic-cfb8945f51-20240702",
2744927449
rendererPackageName: "react-dom"
2745027450
}) &&
2745127451
canUseDOM &&
@@ -28088,7 +28088,7 @@ __DEV__ &&
2808828088
exports.useFormStatus = function () {
2808928089
return resolveDispatcher().useHostTransitionStatus();
2809028090
};
28091-
exports.version = "19.0.0-www-classic-e60063d9e7-20240702";
28091+
exports.version = "19.0.0-www-classic-cfb8945f51-20240702";
2809228092
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2809328093
"function" ===
2809428094
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactDOM-dev.modern.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -26517,11 +26517,11 @@ __DEV__ &&
2651726517
return_targetInst = null;
2651826518
(function () {
2651926519
var isomorphicReactPackageVersion = React.version;
26520-
if ("19.0.0-www-modern-e60063d9e7-20240702" !== isomorphicReactPackageVersion)
26520+
if ("19.0.0-www-modern-cfb8945f51-20240702" !== isomorphicReactPackageVersion)
2652126521
throw Error(
2652226522
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
2652326523
(isomorphicReactPackageVersion +
26524-
"\n - react-dom: 19.0.0-www-modern-e60063d9e7-20240702\nLearn more: https://react.dev/warnings/version-mismatch")
26524+
"\n - react-dom: 19.0.0-www-modern-cfb8945f51-20240702\nLearn more: https://react.dev/warnings/version-mismatch")
2652526525
);
2652626526
})();
2652726527
("function" === typeof Map &&
@@ -26586,12 +26586,12 @@ __DEV__ &&
2658626586
scheduleRoot: scheduleRoot,
2658726587
setRefreshHandler: setRefreshHandler,
2658826588
getCurrentFiber: getCurrentFiberForDevTools,
26589-
reconcilerVersion: "19.0.0-www-modern-e60063d9e7-20240702"
26589+
reconcilerVersion: "19.0.0-www-modern-cfb8945f51-20240702"
2659026590
});
2659126591
})({
2659226592
findFiberByHostInstance: getClosestInstanceFromNode,
2659326593
bundleType: 1,
26594-
version: "19.0.0-www-modern-e60063d9e7-20240702",
26594+
version: "19.0.0-www-modern-cfb8945f51-20240702",
2659526595
rendererPackageName: "react-dom"
2659626596
}) &&
2659726597
canUseDOM &&
@@ -27187,7 +27187,7 @@ __DEV__ &&
2718727187
exports.useFormStatus = function () {
2718827188
return resolveDispatcher().useHostTransitionStatus();
2718927189
};
27190-
exports.version = "19.0.0-www-modern-e60063d9e7-20240702";
27190+
exports.version = "19.0.0-www-modern-cfb8945f51-20240702";
2719127191
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2719227192
"function" ===
2719327193
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactDOM-prod.classic.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -17156,14 +17156,14 @@ function getCrossOriginStringAs(as, input) {
1715617156
}
1715717157
var isomorphicReactPackageVersion$jscomp$inline_1769 = React.version;
1715817158
if (
17159-
"19.0.0-www-classic-e60063d9e7-20240702" !==
17159+
"19.0.0-www-classic-cfb8945f51-20240702" !==
1716017160
isomorphicReactPackageVersion$jscomp$inline_1769
1716117161
)
1716217162
throw Error(
1716317163
formatProdErrorMessage(
1716417164
527,
1716517165
isomorphicReactPackageVersion$jscomp$inline_1769,
17166-
"19.0.0-www-classic-e60063d9e7-20240702"
17166+
"19.0.0-www-classic-cfb8945f51-20240702"
1716717167
)
1716817168
);
1716917169
function flushSyncFromReconciler(fn) {
@@ -17209,7 +17209,7 @@ Internals.Events = [
1720917209
var devToolsConfig$jscomp$inline_1776 = {
1721017210
findFiberByHostInstance: getClosestInstanceFromNode,
1721117211
bundleType: 0,
17212-
version: "19.0.0-www-classic-e60063d9e7-20240702",
17212+
version: "19.0.0-www-classic-cfb8945f51-20240702",
1721317213
rendererPackageName: "react-dom"
1721417214
};
1721517215
var internals$jscomp$inline_2220 = {
@@ -17239,7 +17239,7 @@ var internals$jscomp$inline_2220 = {
1723917239
scheduleRoot: null,
1724017240
setRefreshHandler: null,
1724117241
getCurrentFiber: null,
17242-
reconcilerVersion: "19.0.0-www-classic-e60063d9e7-20240702"
17242+
reconcilerVersion: "19.0.0-www-classic-cfb8945f51-20240702"
1724317243
};
1724417244
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1724517245
var hook$jscomp$inline_2221 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17703,4 +17703,4 @@ exports.useFormState = function (action, initialState, permalink) {
1770317703
exports.useFormStatus = function () {
1770417704
return ReactSharedInternals.H.useHostTransitionStatus();
1770517705
};
17706-
exports.version = "19.0.0-www-classic-e60063d9e7-20240702";
17706+
exports.version = "19.0.0-www-classic-cfb8945f51-20240702";

compiled/facebook-www/ReactDOM-prod.modern.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -16471,14 +16471,14 @@ function getCrossOriginStringAs(as, input) {
1647116471
}
1647216472
var isomorphicReactPackageVersion$jscomp$inline_1740 = React.version;
1647316473
if (
16474-
"19.0.0-www-modern-e60063d9e7-20240702" !==
16474+
"19.0.0-www-modern-cfb8945f51-20240702" !==
1647516475
isomorphicReactPackageVersion$jscomp$inline_1740
1647616476
)
1647716477
throw Error(
1647816478
formatProdErrorMessage(
1647916479
527,
1648016480
isomorphicReactPackageVersion$jscomp$inline_1740,
16481-
"19.0.0-www-modern-e60063d9e7-20240702"
16481+
"19.0.0-www-modern-cfb8945f51-20240702"
1648216482
)
1648316483
);
1648416484
Internals.findDOMNode = function (componentOrElement) {
@@ -16497,7 +16497,7 @@ Internals.Events = [
1649716497
var devToolsConfig$jscomp$inline_1742 = {
1649816498
findFiberByHostInstance: getClosestInstanceFromNode,
1649916499
bundleType: 0,
16500-
version: "19.0.0-www-modern-e60063d9e7-20240702",
16500+
version: "19.0.0-www-modern-cfb8945f51-20240702",
1650116501
rendererPackageName: "react-dom"
1650216502
};
1650316503
var internals$jscomp$inline_2211 = {
@@ -16527,7 +16527,7 @@ var internals$jscomp$inline_2211 = {
1652716527
scheduleRoot: null,
1652816528
setRefreshHandler: null,
1652916529
getCurrentFiber: null,
16530-
reconcilerVersion: "19.0.0-www-modern-e60063d9e7-20240702"
16530+
reconcilerVersion: "19.0.0-www-modern-cfb8945f51-20240702"
1653116531
};
1653216532
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1653316533
var hook$jscomp$inline_2212 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -16898,4 +16898,4 @@ exports.useFormState = function (action, initialState, permalink) {
1689816898
exports.useFormStatus = function () {
1689916899
return ReactSharedInternals.H.useHostTransitionStatus();
1690016900
};
16901-
exports.version = "19.0.0-www-modern-e60063d9e7-20240702";
16901+
exports.version = "19.0.0-www-modern-cfb8945f51-20240702";

compiled/facebook-www/ReactDOM-profiling.classic.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -17923,14 +17923,14 @@ function getCrossOriginStringAs(as, input) {
1792317923
}
1792417924
var isomorphicReactPackageVersion$jscomp$inline_1856 = React.version;
1792517925
if (
17926-
"19.0.0-www-classic-e60063d9e7-20240702" !==
17926+
"19.0.0-www-classic-cfb8945f51-20240702" !==
1792717927
isomorphicReactPackageVersion$jscomp$inline_1856
1792817928
)
1792917929
throw Error(
1793017930
formatProdErrorMessage(
1793117931
527,
1793217932
isomorphicReactPackageVersion$jscomp$inline_1856,
17933-
"19.0.0-www-classic-e60063d9e7-20240702"
17933+
"19.0.0-www-classic-cfb8945f51-20240702"
1793417934
)
1793517935
);
1793617936
function flushSyncFromReconciler(fn) {
@@ -17976,7 +17976,7 @@ Internals.Events = [
1797617976
var devToolsConfig$jscomp$inline_1863 = {
1797717977
findFiberByHostInstance: getClosestInstanceFromNode,
1797817978
bundleType: 0,
17979-
version: "19.0.0-www-classic-e60063d9e7-20240702",
17979+
version: "19.0.0-www-classic-cfb8945f51-20240702",
1798017980
rendererPackageName: "react-dom"
1798117981
};
1798217982
(function (internals) {
@@ -18020,7 +18020,7 @@ var devToolsConfig$jscomp$inline_1863 = {
1802018020
scheduleRoot: null,
1802118021
setRefreshHandler: null,
1802218022
getCurrentFiber: null,
18023-
reconcilerVersion: "19.0.0-www-classic-e60063d9e7-20240702"
18023+
reconcilerVersion: "19.0.0-www-classic-cfb8945f51-20240702"
1802418024
});
1802518025
function ReactDOMRoot(internalRoot) {
1802618026
this._internalRoot = internalRoot;
@@ -18471,7 +18471,7 @@ exports.useFormState = function (action, initialState, permalink) {
1847118471
exports.useFormStatus = function () {
1847218472
return ReactSharedInternals.H.useHostTransitionStatus();
1847318473
};
18474-
exports.version = "19.0.0-www-classic-e60063d9e7-20240702";
18474+
exports.version = "19.0.0-www-classic-cfb8945f51-20240702";
1847518475
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1847618476
"function" ===
1847718477
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactDOM-profiling.modern.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -17221,14 +17221,14 @@ function getCrossOriginStringAs(as, input) {
1722117221
}
1722217222
var isomorphicReactPackageVersion$jscomp$inline_1827 = React.version;
1722317223
if (
17224-
"19.0.0-www-modern-e60063d9e7-20240702" !==
17224+
"19.0.0-www-modern-cfb8945f51-20240702" !==
1722517225
isomorphicReactPackageVersion$jscomp$inline_1827
1722617226
)
1722717227
throw Error(
1722817228
formatProdErrorMessage(
1722917229
527,
1723017230
isomorphicReactPackageVersion$jscomp$inline_1827,
17231-
"19.0.0-www-modern-e60063d9e7-20240702"
17231+
"19.0.0-www-modern-cfb8945f51-20240702"
1723217232
)
1723317233
);
1723417234
Internals.findDOMNode = function (componentOrElement) {
@@ -17247,7 +17247,7 @@ Internals.Events = [
1724717247
var devToolsConfig$jscomp$inline_1829 = {
1724817248
findFiberByHostInstance: getClosestInstanceFromNode,
1724917249
bundleType: 0,
17250-
version: "19.0.0-www-modern-e60063d9e7-20240702",
17250+
version: "19.0.0-www-modern-cfb8945f51-20240702",
1725117251
rendererPackageName: "react-dom"
1725217252
};
1725317253
(function (internals) {
@@ -17291,7 +17291,7 @@ var devToolsConfig$jscomp$inline_1829 = {
1729117291
scheduleRoot: null,
1729217292
setRefreshHandler: null,
1729317293
getCurrentFiber: null,
17294-
reconcilerVersion: "19.0.0-www-modern-e60063d9e7-20240702"
17294+
reconcilerVersion: "19.0.0-www-modern-cfb8945f51-20240702"
1729517295
});
1729617296
function ReactDOMRoot(internalRoot) {
1729717297
this._internalRoot = internalRoot;
@@ -17649,7 +17649,7 @@ exports.useFormState = function (action, initialState, permalink) {
1764917649
exports.useFormStatus = function () {
1765017650
return ReactSharedInternals.H.useHostTransitionStatus();
1765117651
};
17652-
exports.version = "19.0.0-www-modern-e60063d9e7-20240702";
17652+
exports.version = "19.0.0-www-modern-cfb8945f51-20240702";
1765317653
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1765417654
"function" ===
1765517655
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)