Skip to content

Commit b8decad

Browse files
committed
[Fizz] Enable owner stacks for SSR (#30152)
Stacked on #30142. This tracks owners and their stacks in DEV in Fizz. We use the ComponentStackNode as the data structure to track this information - effectively like ReactComponentInfo (Server) or Fiber (Client). They're the instance. I then port them same logic from ReactFiberComponentStack, ReactFiberOwnerStack and ReactFiberCallUserSpace to Fizz equivalents. This gets us both owner stacks from `captureOwnerStack()`, as well as appended to console.errors logged by Fizz, while rendering and in onError. DiffTrain build for [315109b](315109b)
1 parent 0f2a59e commit b8decad

36 files changed

+735
-354
lines changed

compiled/facebook-www/REVISION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e02baf6c92833a0d45a77fb2e741676f393c24f7
1+
315109b02b0c9460b7466ca88f3f4d6ed1215a21
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e02baf6c92833a0d45a77fb2e741676f393c24f7
1+
315109b02b0c9460b7466ca88f3f4d6ed1215a21

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-e02baf6c92-20240627";
1994+
exports.version = "19.0.0-www-classic-315109b02b-20240701";
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-e02baf6c92-20240627";
1974+
exports.version = "19.0.0-www-modern-315109b02b-20240701";
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-e02baf6c92-20240627";
672+
exports.version = "19.0.0-www-classic-315109b02b-20240701";

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-e02baf6c92-20240627";
672+
exports.version = "19.0.0-www-modern-315109b02b-20240701";

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-e02baf6c92-20240627";
676+
exports.version = "19.0.0-www-classic-315109b02b-20240701";
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-e02baf6c92-20240627";
676+
exports.version = "19.0.0-www-modern-315109b02b-20240701";
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-e02baf6c92-20240627"
16937+
reconcilerVersion: "19.0.0-www-classic-315109b02b-20240701"
1693816938
});
1693916939
})({
1694016940
findFiberByHostInstance: function () {
1694116941
return null;
1694216942
},
1694316943
bundleType: 1,
16944-
version: "19.0.0-www-classic-e02baf6c92-20240627",
16944+
version: "19.0.0-www-classic-315109b02b-20240701",
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-e02baf6c92-20240627"
16367+
reconcilerVersion: "19.0.0-www-modern-315109b02b-20240701"
1636816368
});
1636916369
})({
1637016370
findFiberByHostInstance: function () {
1637116371
return null;
1637216372
},
1637316373
bundleType: 1,
16374-
version: "19.0.0-www-modern-e02baf6c92-20240627",
16374+
version: "19.0.0-www-modern-315109b02b-20240701",
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-e02baf6c92-20240627",
10714+
version: "19.0.0-www-classic-315109b02b-20240701",
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-e02baf6c92-20240627"
10745+
reconcilerVersion: "19.0.0-www-classic-315109b02b-20240701"
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-e02baf6c92-20240627",
10167+
version: "19.0.0-www-modern-315109b02b-20240701",
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-e02baf6c92-20240627"
10198+
reconcilerVersion: "19.0.0-www-modern-315109b02b-20240701"
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-e02baf6c92-20240627" !== isomorphicReactPackageVersion)
27373+
if ("19.0.0-www-classic-315109b02b-20240701" !== 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-e02baf6c92-20240627\nLearn more: https://react.dev/warnings/version-mismatch")
27377+
"\n - react-dom: 19.0.0-www-classic-315109b02b-20240701\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-e02baf6c92-20240627"
27443+
reconcilerVersion: "19.0.0-www-classic-315109b02b-20240701"
2744427444
});
2744527445
})({
2744627446
findFiberByHostInstance: getClosestInstanceFromNode,
2744727447
bundleType: 1,
27448-
version: "19.0.0-www-classic-e02baf6c92-20240627",
27448+
version: "19.0.0-www-classic-315109b02b-20240701",
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-e02baf6c92-20240627";
28091+
exports.version = "19.0.0-www-classic-315109b02b-20240701";
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-e02baf6c92-20240627" !== isomorphicReactPackageVersion)
26520+
if ("19.0.0-www-modern-315109b02b-20240701" !== 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-e02baf6c92-20240627\nLearn more: https://react.dev/warnings/version-mismatch")
26524+
"\n - react-dom: 19.0.0-www-modern-315109b02b-20240701\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-e02baf6c92-20240627"
26589+
reconcilerVersion: "19.0.0-www-modern-315109b02b-20240701"
2659026590
});
2659126591
})({
2659226592
findFiberByHostInstance: getClosestInstanceFromNode,
2659326593
bundleType: 1,
26594-
version: "19.0.0-www-modern-e02baf6c92-20240627",
26594+
version: "19.0.0-www-modern-315109b02b-20240701",
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-e02baf6c92-20240627";
27190+
exports.version = "19.0.0-www-modern-315109b02b-20240701";
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-e02baf6c92-20240627" !==
17159+
"19.0.0-www-classic-315109b02b-20240701" !==
1716017160
isomorphicReactPackageVersion$jscomp$inline_1769
1716117161
)
1716217162
throw Error(
1716317163
formatProdErrorMessage(
1716417164
527,
1716517165
isomorphicReactPackageVersion$jscomp$inline_1769,
17166-
"19.0.0-www-classic-e02baf6c92-20240627"
17166+
"19.0.0-www-classic-315109b02b-20240701"
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-e02baf6c92-20240627",
17212+
version: "19.0.0-www-classic-315109b02b-20240701",
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-e02baf6c92-20240627"
17242+
reconcilerVersion: "19.0.0-www-classic-315109b02b-20240701"
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-e02baf6c92-20240627";
17706+
exports.version = "19.0.0-www-classic-315109b02b-20240701";

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-e02baf6c92-20240627" !==
16474+
"19.0.0-www-modern-315109b02b-20240701" !==
1647516475
isomorphicReactPackageVersion$jscomp$inline_1740
1647616476
)
1647716477
throw Error(
1647816478
formatProdErrorMessage(
1647916479
527,
1648016480
isomorphicReactPackageVersion$jscomp$inline_1740,
16481-
"19.0.0-www-modern-e02baf6c92-20240627"
16481+
"19.0.0-www-modern-315109b02b-20240701"
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-e02baf6c92-20240627",
16500+
version: "19.0.0-www-modern-315109b02b-20240701",
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-e02baf6c92-20240627"
16530+
reconcilerVersion: "19.0.0-www-modern-315109b02b-20240701"
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-e02baf6c92-20240627";
16901+
exports.version = "19.0.0-www-modern-315109b02b-20240701";

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-e02baf6c92-20240627" !==
17926+
"19.0.0-www-classic-315109b02b-20240701" !==
1792717927
isomorphicReactPackageVersion$jscomp$inline_1856
1792817928
)
1792917929
throw Error(
1793017930
formatProdErrorMessage(
1793117931
527,
1793217932
isomorphicReactPackageVersion$jscomp$inline_1856,
17933-
"19.0.0-www-classic-e02baf6c92-20240627"
17933+
"19.0.0-www-classic-315109b02b-20240701"
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-e02baf6c92-20240627",
17979+
version: "19.0.0-www-classic-315109b02b-20240701",
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-e02baf6c92-20240627"
18023+
reconcilerVersion: "19.0.0-www-classic-315109b02b-20240701"
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-e02baf6c92-20240627";
18474+
exports.version = "19.0.0-www-classic-315109b02b-20240701";
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-e02baf6c92-20240627" !==
17224+
"19.0.0-www-modern-315109b02b-20240701" !==
1722517225
isomorphicReactPackageVersion$jscomp$inline_1827
1722617226
)
1722717227
throw Error(
1722817228
formatProdErrorMessage(
1722917229
527,
1723017230
isomorphicReactPackageVersion$jscomp$inline_1827,
17231-
"19.0.0-www-modern-e02baf6c92-20240627"
17231+
"19.0.0-www-modern-315109b02b-20240701"
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-e02baf6c92-20240627",
17250+
version: "19.0.0-www-modern-315109b02b-20240701",
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-e02baf6c92-20240627"
17294+
reconcilerVersion: "19.0.0-www-modern-315109b02b-20240701"
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-e02baf6c92-20240627";
17652+
exports.version = "19.0.0-www-modern-315109b02b-20240701";
1765317653
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1765417654
"function" ===
1765517655
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)