Skip to content

Commit 7b03e14

Browse files
committed
[Fizz] Skip past hidden inputs when attempting to hydrate hydration boundaries (#34302)
DiffTrain build for [4123f6b](4123f6b)
1 parent e0be527 commit 7b03e14

24 files changed

+130
-94
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.2.0-native-fb-425ba0ad-20250822
1+
19.2.0-native-fb-4123f6b7-20250826

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<<1958ebaac0d3d6fb4cedd53a75c44d46>>
10+
* @generated SignedSource<<7bd0ab239879413069fef8a7242c34ca>>
1111
*/
1212

1313
"use strict";
@@ -404,5 +404,5 @@ __DEV__ &&
404404
exports.useFormStatus = function () {
405405
return resolveDispatcher().useHostTransitionStatus();
406406
};
407-
exports.version = "19.2.0-native-fb-425ba0ad-20250822";
407+
exports.version = "19.2.0-native-fb-4123f6b7-20250826";
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<<7d47151e34737748daaa2f20c2b91bf6>>
10+
* @generated SignedSource<<30e6f2325467907f88fa57c6e5098700>>
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.2.0-native-fb-425ba0ad-20250822";
206+
exports.version = "19.2.0-native-fb-4123f6b7-20250826";

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<<7d47151e34737748daaa2f20c2b91bf6>>
10+
* @generated SignedSource<<30e6f2325467907f88fa57c6e5098700>>
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.2.0-native-fb-425ba0ad-20250822";
206+
exports.version = "19.2.0-native-fb-4123f6b7-20250826";

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

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

1313
/*
@@ -23584,7 +23584,13 @@ __DEV__ &&
2358423584
}
2358523585
function canHydrateHydrationBoundary(instance, inRootOrSingleton) {
2358623586
for (; 8 !== instance.nodeType; ) {
23587-
if (!inRootOrSingleton) return null;
23587+
if (
23588+
(1 !== instance.nodeType ||
23589+
"INPUT" !== instance.nodeName ||
23590+
"hidden" !== instance.type) &&
23591+
!inRootOrSingleton
23592+
)
23593+
return null;
2358823594
instance = getNextHydratable(instance.nextSibling);
2358923595
if (null === instance) return null;
2359023596
}
@@ -29367,11 +29373,11 @@ __DEV__ &&
2936729373
};
2936829374
(function () {
2936929375
var isomorphicReactPackageVersion = React.version;
29370-
if ("19.2.0-native-fb-425ba0ad-20250822" !== isomorphicReactPackageVersion)
29376+
if ("19.2.0-native-fb-4123f6b7-20250826" !== isomorphicReactPackageVersion)
2937129377
throw Error(
2937229378
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
2937329379
(isomorphicReactPackageVersion +
29374-
"\n - react-dom: 19.2.0-native-fb-425ba0ad-20250822\nLearn more: https://react.dev/warnings/version-mismatch")
29380+
"\n - react-dom: 19.2.0-native-fb-4123f6b7-20250826\nLearn more: https://react.dev/warnings/version-mismatch")
2937529381
);
2937629382
})();
2937729383
("function" === typeof Map &&
@@ -29408,10 +29414,10 @@ __DEV__ &&
2940829414
!(function () {
2940929415
var internals = {
2941029416
bundleType: 1,
29411-
version: "19.2.0-native-fb-425ba0ad-20250822",
29417+
version: "19.2.0-native-fb-4123f6b7-20250826",
2941229418
rendererPackageName: "react-dom",
2941329419
currentDispatcherRef: ReactSharedInternals,
29414-
reconcilerVersion: "19.2.0-native-fb-425ba0ad-20250822"
29420+
reconcilerVersion: "19.2.0-native-fb-4123f6b7-20250826"
2941529421
};
2941629422
internals.overrideHookState = overrideHookState;
2941729423
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -29550,5 +29556,5 @@ __DEV__ &&
2955029556
listenToAllSupportedEvents(container);
2955129557
return new ReactDOMHydrationRoot(initialChildren);
2955229558
};
29553-
exports.version = "19.2.0-native-fb-425ba0ad-20250822";
29559+
exports.version = "19.2.0-native-fb-4123f6b7-20250826";
2955429560
})();

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

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

1313
/*
@@ -15486,7 +15486,13 @@ function canHydrateTextInstance(instance, text, inRootOrSingleton) {
1548615486
}
1548715487
function canHydrateHydrationBoundary(instance, inRootOrSingleton) {
1548815488
for (; 8 !== instance.nodeType; ) {
15489-
if (!inRootOrSingleton) return null;
15489+
if (
15490+
(1 !== instance.nodeType ||
15491+
"INPUT" !== instance.nodeName ||
15492+
"hidden" !== instance.type) &&
15493+
!inRootOrSingleton
15494+
)
15495+
return null;
1549015496
instance = getNextHydratable(instance.nextSibling);
1549115497
if (null === instance) return null;
1549215498
}
@@ -17190,14 +17196,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1719017196
};
1719117197
var isomorphicReactPackageVersion$jscomp$inline_2023 = React.version;
1719217198
if (
17193-
"19.2.0-native-fb-425ba0ad-20250822" !==
17199+
"19.2.0-native-fb-4123f6b7-20250826" !==
1719417200
isomorphicReactPackageVersion$jscomp$inline_2023
1719517201
)
1719617202
throw Error(
1719717203
formatProdErrorMessage(
1719817204
527,
1719917205
isomorphicReactPackageVersion$jscomp$inline_2023,
17200-
"19.2.0-native-fb-425ba0ad-20250822"
17206+
"19.2.0-native-fb-4123f6b7-20250826"
1720117207
)
1720217208
);
1720317209
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17219,10 +17225,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1721917225
};
1722017226
var internals$jscomp$inline_2554 = {
1722117227
bundleType: 0,
17222-
version: "19.2.0-native-fb-425ba0ad-20250822",
17228+
version: "19.2.0-native-fb-4123f6b7-20250826",
1722317229
rendererPackageName: "react-dom",
1722417230
currentDispatcherRef: ReactSharedInternals,
17225-
reconcilerVersion: "19.2.0-native-fb-425ba0ad-20250822"
17231+
reconcilerVersion: "19.2.0-native-fb-4123f6b7-20250826"
1722617232
};
1722717233
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1722817234
var hook$jscomp$inline_2555 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17320,4 +17326,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1732017326
listenToAllSupportedEvents(container);
1732117327
return new ReactDOMHydrationRoot(initialChildren);
1732217328
};
17323-
exports.version = "19.2.0-native-fb-425ba0ad-20250822";
17329+
exports.version = "19.2.0-native-fb-4123f6b7-20250826";

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

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

1313
/*
@@ -17487,7 +17487,13 @@ function canHydrateTextInstance(instance, text, inRootOrSingleton) {
1748717487
}
1748817488
function canHydrateHydrationBoundary(instance, inRootOrSingleton) {
1748917489
for (; 8 !== instance.nodeType; ) {
17490-
if (!inRootOrSingleton) return null;
17490+
if (
17491+
(1 !== instance.nodeType ||
17492+
"INPUT" !== instance.nodeName ||
17493+
"hidden" !== instance.type) &&
17494+
!inRootOrSingleton
17495+
)
17496+
return null;
1749117497
instance = getNextHydratable(instance.nextSibling);
1749217498
if (null === instance) return null;
1749317499
}
@@ -19200,14 +19206,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1920019206
};
1920119207
var isomorphicReactPackageVersion$jscomp$inline_2274 = React.version;
1920219208
if (
19203-
"19.2.0-native-fb-425ba0ad-20250822" !==
19209+
"19.2.0-native-fb-4123f6b7-20250826" !==
1920419210
isomorphicReactPackageVersion$jscomp$inline_2274
1920519211
)
1920619212
throw Error(
1920719213
formatProdErrorMessage(
1920819214
527,
1920919215
isomorphicReactPackageVersion$jscomp$inline_2274,
19210-
"19.2.0-native-fb-425ba0ad-20250822"
19216+
"19.2.0-native-fb-4123f6b7-20250826"
1921119217
)
1921219218
);
1921319219
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -19229,10 +19235,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1922919235
};
1923019236
var internals$jscomp$inline_2281 = {
1923119237
bundleType: 0,
19232-
version: "19.2.0-native-fb-425ba0ad-20250822",
19238+
version: "19.2.0-native-fb-4123f6b7-20250826",
1923319239
rendererPackageName: "react-dom",
1923419240
currentDispatcherRef: ReactSharedInternals,
19235-
reconcilerVersion: "19.2.0-native-fb-425ba0ad-20250822",
19241+
reconcilerVersion: "19.2.0-native-fb-4123f6b7-20250826",
1923619242
getLaneLabelMap: function () {
1923719243
for (
1923819244
var map = new Map(), lane = 1, index$321 = 0;
@@ -19346,4 +19352,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1934619352
listenToAllSupportedEvents(container);
1934719353
return new ReactDOMHydrationRoot(initialChildren);
1934819354
};
19349-
exports.version = "19.2.0-native-fb-425ba0ad-20250822";
19355+
exports.version = "19.2.0-native-fb-4123f6b7-20250826";

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

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

1313
/*
@@ -23592,7 +23592,13 @@ __DEV__ &&
2359223592
}
2359323593
function canHydrateHydrationBoundary(instance, inRootOrSingleton) {
2359423594
for (; 8 !== instance.nodeType; ) {
23595-
if (!inRootOrSingleton) return null;
23595+
if (
23596+
(1 !== instance.nodeType ||
23597+
"INPUT" !== instance.nodeName ||
23598+
"hidden" !== instance.type) &&
23599+
!inRootOrSingleton
23600+
)
23601+
return null;
2359623602
instance = getNextHydratable(instance.nextSibling);
2359723603
if (null === instance) return null;
2359823604
}
@@ -29423,11 +29429,11 @@ __DEV__ &&
2942329429
};
2942429430
(function () {
2942529431
var isomorphicReactPackageVersion = React.version;
29426-
if ("19.2.0-native-fb-425ba0ad-20250822" !== isomorphicReactPackageVersion)
29432+
if ("19.2.0-native-fb-4123f6b7-20250826" !== isomorphicReactPackageVersion)
2942729433
throw Error(
2942829434
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
2942929435
(isomorphicReactPackageVersion +
29430-
"\n - react-dom: 19.2.0-native-fb-425ba0ad-20250822\nLearn more: https://react.dev/warnings/version-mismatch")
29436+
"\n - react-dom: 19.2.0-native-fb-4123f6b7-20250826\nLearn more: https://react.dev/warnings/version-mismatch")
2943129437
);
2943229438
})();
2943329439
("function" === typeof Map &&
@@ -29464,10 +29470,10 @@ __DEV__ &&
2946429470
!(function () {
2946529471
var internals = {
2946629472
bundleType: 1,
29467-
version: "19.2.0-native-fb-425ba0ad-20250822",
29473+
version: "19.2.0-native-fb-4123f6b7-20250826",
2946829474
rendererPackageName: "react-dom",
2946929475
currentDispatcherRef: ReactSharedInternals,
29470-
reconcilerVersion: "19.2.0-native-fb-425ba0ad-20250822"
29476+
reconcilerVersion: "19.2.0-native-fb-4123f6b7-20250826"
2947129477
};
2947229478
internals.overrideHookState = overrideHookState;
2947329479
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -29922,7 +29928,7 @@ __DEV__ &&
2992229928
exports.useFormStatus = function () {
2992329929
return resolveDispatcher().useHostTransitionStatus();
2992429930
};
29925-
exports.version = "19.2.0-native-fb-425ba0ad-20250822";
29931+
exports.version = "19.2.0-native-fb-4123f6b7-20250826";
2992629932
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2992729933
"function" ===
2992829934
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

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

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<4a4d2b309a9b1b1765c21bc2090abb0d>>
10+
* @generated SignedSource<<8286edb3ee5e368ace16d95c9fa8d65d>>
1111
*/
1212

1313
/*
@@ -15486,7 +15486,13 @@ function canHydrateTextInstance(instance, text, inRootOrSingleton) {
1548615486
}
1548715487
function canHydrateHydrationBoundary(instance, inRootOrSingleton) {
1548815488
for (; 8 !== instance.nodeType; ) {
15489-
if (!inRootOrSingleton) return null;
15489+
if (
15490+
(1 !== instance.nodeType ||
15491+
"INPUT" !== instance.nodeName ||
15492+
"hidden" !== instance.type) &&
15493+
!inRootOrSingleton
15494+
)
15495+
return null;
1549015496
instance = getNextHydratable(instance.nextSibling);
1549115497
if (null === instance) return null;
1549215498
}
@@ -17201,14 +17207,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1720117207
};
1720217208
var isomorphicReactPackageVersion$jscomp$inline_2024 = React.version;
1720317209
if (
17204-
"19.2.0-native-fb-425ba0ad-20250822" !==
17210+
"19.2.0-native-fb-4123f6b7-20250826" !==
1720517211
isomorphicReactPackageVersion$jscomp$inline_2024
1720617212
)
1720717213
throw Error(
1720817214
formatProdErrorMessage(
1720917215
527,
1721017216
isomorphicReactPackageVersion$jscomp$inline_2024,
17211-
"19.2.0-native-fb-425ba0ad-20250822"
17217+
"19.2.0-native-fb-4123f6b7-20250826"
1721217218
)
1721317219
);
1721417220
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17230,10 +17236,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1723017236
};
1723117237
var internals$jscomp$inline_2557 = {
1723217238
bundleType: 0,
17233-
version: "19.2.0-native-fb-425ba0ad-20250822",
17239+
version: "19.2.0-native-fb-4123f6b7-20250826",
1723417240
rendererPackageName: "react-dom",
1723517241
currentDispatcherRef: ReactSharedInternals,
17236-
reconcilerVersion: "19.2.0-native-fb-425ba0ad-20250822"
17242+
reconcilerVersion: "19.2.0-native-fb-4123f6b7-20250826"
1723717243
};
1723817244
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1723917245
var hook$jscomp$inline_2558 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17484,4 +17490,4 @@ exports.useFormState = function (action, initialState, permalink) {
1748417490
exports.useFormStatus = function () {
1748517491
return ReactSharedInternals.H.useHostTransitionStatus();
1748617492
};
17487-
exports.version = "19.2.0-native-fb-425ba0ad-20250822";
17493+
exports.version = "19.2.0-native-fb-4123f6b7-20250826";

0 commit comments

Comments
 (0)