Skip to content

Commit 5fa6693

Browse files
committed
Add Owner Stack to attribute hydration mismatches (#32538)
DiffTrain build for [029e8bd](029e8bd)
1 parent 4f50377 commit 5fa6693

23 files changed

+320
-295
lines changed

compiled-rn/VERSION_NATIVE_FB

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
19.1.0-native-fb-aac177c4-20250305
1+
19.1.0-native-fb-029e8bd6-20250306

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-dev.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<a490221e05a03c8bee7e5b255028c225>>
10+
* @generated SignedSource<<10cc0214fb26fcb3aa0d21e311984e72>>
1111
*/
1212

1313
"use strict";
@@ -404,5 +404,5 @@ __DEV__ &&
404404
exports.useFormStatus = function () {
405405
return resolveDispatcher().useHostTransitionStatus();
406406
};
407-
exports.version = "19.1.0-native-fb-aac177c4-20250305";
407+
exports.version = "19.1.0-native-fb-029e8bd6-20250306";
408408
})();

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-prod.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<61d81a27b53b7be144cc6aaa7ddc0bb3>>
10+
* @generated SignedSource<<b1e41d6164c903e76d1a369ef3627687>>
1111
*/
1212

1313
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
203203
exports.useFormStatus = function () {
204204
return ReactSharedInternals.H.useHostTransitionStatus();
205205
};
206-
exports.version = "19.1.0-native-fb-aac177c4-20250305";
206+
exports.version = "19.1.0-native-fb-029e8bd6-20250306";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-profiling.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<61d81a27b53b7be144cc6aaa7ddc0bb3>>
10+
* @generated SignedSource<<b1e41d6164c903e76d1a369ef3627687>>
1111
*/
1212

1313
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
203203
exports.useFormStatus = function () {
204204
return ReactSharedInternals.H.useHostTransitionStatus();
205205
};
206-
exports.version = "19.1.0-native-fb-aac177c4-20250305";
206+
exports.version = "19.1.0-native-fb-029e8bd6-20250306";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-dev.js

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<778fc89acebd01d5119681de0a788559>>
10+
* @generated SignedSource<<3d5e3cf2a749819fe2ea6292b61d5613>>
1111
*/
1212

1313
/*
@@ -14319,14 +14319,18 @@ __DEV__ &&
1431914319
}
1432014320
function emitPendingHydrationWarnings() {
1432114321
var diffRoot = hydrationDiffRootDEV;
14322-
null !== diffRoot &&
14323-
((hydrationDiffRootDEV = null),
14324-
(diffRoot = describeDiff(diffRoot)),
14325-
console.error(
14326-
"A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\n%s%s",
14327-
"https://react.dev/link/hydration-mismatch",
14328-
diffRoot
14329-
));
14322+
if (null !== diffRoot) {
14323+
hydrationDiffRootDEV = null;
14324+
for (var diff = describeDiff(diffRoot); 0 < diffRoot.children.length; )
14325+
diffRoot = diffRoot.children[0];
14326+
runWithFiberInDEV(diffRoot.fiber, function () {
14327+
console.error(
14328+
"A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\n%s%s",
14329+
"https://react.dev/link/hydration-mismatch",
14330+
diff
14331+
);
14332+
});
14333+
}
1433014334
}
1433114335
function markUpdate(workInProgress) {
1433214336
workInProgress.flags |= 4;
@@ -26060,11 +26064,11 @@ __DEV__ &&
2606026064
};
2606126065
(function () {
2606226066
var isomorphicReactPackageVersion = React.version;
26063-
if ("19.1.0-native-fb-aac177c4-20250305" !== isomorphicReactPackageVersion)
26067+
if ("19.1.0-native-fb-029e8bd6-20250306" !== isomorphicReactPackageVersion)
2606426068
throw Error(
2606526069
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
2606626070
(isomorphicReactPackageVersion +
26067-
"\n - react-dom: 19.1.0-native-fb-aac177c4-20250305\nLearn more: https://react.dev/warnings/version-mismatch")
26071+
"\n - react-dom: 19.1.0-native-fb-029e8bd6-20250306\nLearn more: https://react.dev/warnings/version-mismatch")
2606826072
);
2606926073
})();
2607026074
("function" === typeof Map &&
@@ -26101,10 +26105,10 @@ __DEV__ &&
2610126105
!(function () {
2610226106
var internals = {
2610326107
bundleType: 1,
26104-
version: "19.1.0-native-fb-aac177c4-20250305",
26108+
version: "19.1.0-native-fb-029e8bd6-20250306",
2610526109
rendererPackageName: "react-dom",
2610626110
currentDispatcherRef: ReactSharedInternals,
26107-
reconcilerVersion: "19.1.0-native-fb-aac177c4-20250305"
26111+
reconcilerVersion: "19.1.0-native-fb-029e8bd6-20250306"
2610826112
};
2610926113
internals.overrideHookState = overrideHookState;
2611026114
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -26248,5 +26252,5 @@ __DEV__ &&
2624826252
listenToAllSupportedEvents(container);
2624926253
return new ReactDOMHydrationRoot(initialChildren);
2625026254
};
26251-
exports.version = "19.1.0-native-fb-aac177c4-20250305";
26255+
exports.version = "19.1.0-native-fb-029e8bd6-20250306";
2625226256
})();

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<db4b925e5b6f4f3eda8a22e49c3a85d6>>
10+
* @generated SignedSource<<0a10ceab8bc4a4e4452882db288d9a33>>
1111
*/
1212

1313
/*
@@ -16173,14 +16173,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1617316173
};
1617416174
var isomorphicReactPackageVersion$jscomp$inline_1817 = React.version;
1617516175
if (
16176-
"19.1.0-native-fb-aac177c4-20250305" !==
16176+
"19.1.0-native-fb-029e8bd6-20250306" !==
1617716177
isomorphicReactPackageVersion$jscomp$inline_1817
1617816178
)
1617916179
throw Error(
1618016180
formatProdErrorMessage(
1618116181
527,
1618216182
isomorphicReactPackageVersion$jscomp$inline_1817,
16183-
"19.1.0-native-fb-aac177c4-20250305"
16183+
"19.1.0-native-fb-029e8bd6-20250306"
1618416184
)
1618516185
);
1618616186
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -16202,10 +16202,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1620216202
};
1620316203
var internals$jscomp$inline_2290 = {
1620416204
bundleType: 0,
16205-
version: "19.1.0-native-fb-aac177c4-20250305",
16205+
version: "19.1.0-native-fb-029e8bd6-20250306",
1620616206
rendererPackageName: "react-dom",
1620716207
currentDispatcherRef: ReactSharedInternals,
16208-
reconcilerVersion: "19.1.0-native-fb-aac177c4-20250305"
16208+
reconcilerVersion: "19.1.0-native-fb-029e8bd6-20250306"
1620916209
};
1621016210
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1621116211
var hook$jscomp$inline_2291 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -16309,4 +16309,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1630916309
listenToAllSupportedEvents(container);
1631016310
return new ReactDOMHydrationRoot(initialChildren);
1631116311
};
16312-
exports.version = "19.1.0-native-fb-aac177c4-20250305";
16312+
exports.version = "19.1.0-native-fb-029e8bd6-20250306";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-profiling.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<17d37138688ba956b97d6d4b14b58e30>>
10+
* @generated SignedSource<<c59cb0344c0bec14080dbdd984569667>>
1111
*/
1212

1313
/*
@@ -16823,14 +16823,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1682316823
};
1682416824
var isomorphicReactPackageVersion$jscomp$inline_1912 = React.version;
1682516825
if (
16826-
"19.1.0-native-fb-aac177c4-20250305" !==
16826+
"19.1.0-native-fb-029e8bd6-20250306" !==
1682716827
isomorphicReactPackageVersion$jscomp$inline_1912
1682816828
)
1682916829
throw Error(
1683016830
formatProdErrorMessage(
1683116831
527,
1683216832
isomorphicReactPackageVersion$jscomp$inline_1912,
16833-
"19.1.0-native-fb-aac177c4-20250305"
16833+
"19.1.0-native-fb-029e8bd6-20250306"
1683416834
)
1683516835
);
1683616836
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -16852,10 +16852,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1685216852
};
1685316853
var internals$jscomp$inline_1919 = {
1685416854
bundleType: 0,
16855-
version: "19.1.0-native-fb-aac177c4-20250305",
16855+
version: "19.1.0-native-fb-029e8bd6-20250306",
1685616856
rendererPackageName: "react-dom",
1685716857
currentDispatcherRef: ReactSharedInternals,
16858-
reconcilerVersion: "19.1.0-native-fb-aac177c4-20250305",
16858+
reconcilerVersion: "19.1.0-native-fb-029e8bd6-20250306",
1685916859
getLaneLabelMap: function () {
1686016860
for (
1686116861
var map = new Map(), lane = 1, index$294 = 0;
@@ -16974,4 +16974,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1697416974
listenToAllSupportedEvents(container);
1697516975
return new ReactDOMHydrationRoot(initialChildren);
1697616976
};
16977-
exports.version = "19.1.0-native-fb-aac177c4-20250305";
16977+
exports.version = "19.1.0-native-fb-029e8bd6-20250306";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-dev.js

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<f381395bf3dc373821023b951bc744fa>>
10+
* @generated SignedSource<<38aaa237560b9801414098eec2e540d7>>
1111
*/
1212

1313
/*
@@ -14327,14 +14327,18 @@ __DEV__ &&
1432714327
}
1432814328
function emitPendingHydrationWarnings() {
1432914329
var diffRoot = hydrationDiffRootDEV;
14330-
null !== diffRoot &&
14331-
((hydrationDiffRootDEV = null),
14332-
(diffRoot = describeDiff(diffRoot)),
14333-
console.error(
14334-
"A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\n%s%s",
14335-
"https://react.dev/link/hydration-mismatch",
14336-
diffRoot
14337-
));
14330+
if (null !== diffRoot) {
14331+
hydrationDiffRootDEV = null;
14332+
for (var diff = describeDiff(diffRoot); 0 < diffRoot.children.length; )
14333+
diffRoot = diffRoot.children[0];
14334+
runWithFiberInDEV(diffRoot.fiber, function () {
14335+
console.error(
14336+
"A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\n%s%s",
14337+
"https://react.dev/link/hydration-mismatch",
14338+
diff
14339+
);
14340+
});
14341+
}
1433814342
}
1433914343
function markUpdate(workInProgress) {
1434014344
workInProgress.flags |= 4;
@@ -26121,11 +26125,11 @@ __DEV__ &&
2612126125
};
2612226126
(function () {
2612326127
var isomorphicReactPackageVersion = React.version;
26124-
if ("19.1.0-native-fb-aac177c4-20250305" !== isomorphicReactPackageVersion)
26128+
if ("19.1.0-native-fb-029e8bd6-20250306" !== isomorphicReactPackageVersion)
2612526129
throw Error(
2612626130
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
2612726131
(isomorphicReactPackageVersion +
26128-
"\n - react-dom: 19.1.0-native-fb-aac177c4-20250305\nLearn more: https://react.dev/warnings/version-mismatch")
26132+
"\n - react-dom: 19.1.0-native-fb-029e8bd6-20250306\nLearn more: https://react.dev/warnings/version-mismatch")
2612926133
);
2613026134
})();
2613126135
("function" === typeof Map &&
@@ -26162,10 +26166,10 @@ __DEV__ &&
2616226166
!(function () {
2616326167
var internals = {
2616426168
bundleType: 1,
26165-
version: "19.1.0-native-fb-aac177c4-20250305",
26169+
version: "19.1.0-native-fb-029e8bd6-20250306",
2616626170
rendererPackageName: "react-dom",
2616726171
currentDispatcherRef: ReactSharedInternals,
26168-
reconcilerVersion: "19.1.0-native-fb-aac177c4-20250305"
26172+
reconcilerVersion: "19.1.0-native-fb-029e8bd6-20250306"
2616926173
};
2617026174
internals.overrideHookState = overrideHookState;
2617126175
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -26625,7 +26629,7 @@ __DEV__ &&
2662526629
exports.useFormStatus = function () {
2662626630
return resolveDispatcher().useHostTransitionStatus();
2662726631
};
26628-
exports.version = "19.1.0-native-fb-aac177c4-20250305";
26632+
exports.version = "19.1.0-native-fb-029e8bd6-20250306";
2662926633
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2663026634
"function" ===
2663126635
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-prod.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<bc301a657fd89a1617a446de6f16115c>>
10+
* @generated SignedSource<<47b29a3372d33cc96afd005da9a3d840>>
1111
*/
1212

1313
/*
@@ -16184,14 +16184,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1618416184
};
1618516185
var isomorphicReactPackageVersion$jscomp$inline_1818 = React.version;
1618616186
if (
16187-
"19.1.0-native-fb-aac177c4-20250305" !==
16187+
"19.1.0-native-fb-029e8bd6-20250306" !==
1618816188
isomorphicReactPackageVersion$jscomp$inline_1818
1618916189
)
1619016190
throw Error(
1619116191
formatProdErrorMessage(
1619216192
527,
1619316193
isomorphicReactPackageVersion$jscomp$inline_1818,
16194-
"19.1.0-native-fb-aac177c4-20250305"
16194+
"19.1.0-native-fb-029e8bd6-20250306"
1619516195
)
1619616196
);
1619716197
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -16213,10 +16213,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1621316213
};
1621416214
var internals$jscomp$inline_2293 = {
1621516215
bundleType: 0,
16216-
version: "19.1.0-native-fb-aac177c4-20250305",
16216+
version: "19.1.0-native-fb-029e8bd6-20250306",
1621716217
rendererPackageName: "react-dom",
1621816218
currentDispatcherRef: ReactSharedInternals,
16219-
reconcilerVersion: "19.1.0-native-fb-aac177c4-20250305"
16219+
reconcilerVersion: "19.1.0-native-fb-029e8bd6-20250306"
1622016220
};
1622116221
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1622216222
var hook$jscomp$inline_2294 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -16474,4 +16474,4 @@ exports.useFormState = function (action, initialState, permalink) {
1647416474
exports.useFormStatus = function () {
1647516475
return ReactSharedInternals.H.useHostTransitionStatus();
1647616476
};
16477-
exports.version = "19.1.0-native-fb-aac177c4-20250305";
16477+
exports.version = "19.1.0-native-fb-029e8bd6-20250306";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-profiling.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<47dff3e7fd0613371ffa7f2c3fca7cab>>
10+
* @generated SignedSource<<2b406c6a24893e46d90e2cab2d92492b>>
1111
*/
1212

1313
/*
@@ -16838,14 +16838,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1683816838
};
1683916839
var isomorphicReactPackageVersion$jscomp$inline_1913 = React.version;
1684016840
if (
16841-
"19.1.0-native-fb-aac177c4-20250305" !==
16841+
"19.1.0-native-fb-029e8bd6-20250306" !==
1684216842
isomorphicReactPackageVersion$jscomp$inline_1913
1684316843
)
1684416844
throw Error(
1684516845
formatProdErrorMessage(
1684616846
527,
1684716847
isomorphicReactPackageVersion$jscomp$inline_1913,
16848-
"19.1.0-native-fb-aac177c4-20250305"
16848+
"19.1.0-native-fb-029e8bd6-20250306"
1684916849
)
1685016850
);
1685116851
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -16867,10 +16867,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1686716867
};
1686816868
var internals$jscomp$inline_1920 = {
1686916869
bundleType: 0,
16870-
version: "19.1.0-native-fb-aac177c4-20250305",
16870+
version: "19.1.0-native-fb-029e8bd6-20250306",
1687116871
rendererPackageName: "react-dom",
1687216872
currentDispatcherRef: ReactSharedInternals,
16873-
reconcilerVersion: "19.1.0-native-fb-aac177c4-20250305",
16873+
reconcilerVersion: "19.1.0-native-fb-029e8bd6-20250306",
1687416874
getLaneLabelMap: function () {
1687516875
for (
1687616876
var map = new Map(), lane = 1, index$294 = 0;
@@ -17143,7 +17143,7 @@ exports.useFormState = function (action, initialState, permalink) {
1714317143
exports.useFormStatus = function () {
1714417144
return ReactSharedInternals.H.useHostTransitionStatus();
1714517145
};
17146-
exports.version = "19.1.0-native-fb-aac177c4-20250305";
17146+
exports.version = "19.1.0-native-fb-029e8bd6-20250306";
1714717147
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1714817148
"function" ===
1714917149
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)