Skip to content

Commit 6476ee0

Browse files
committed
Allow forms to skip hydration of hidden inputs (#26735)
This allows us to emit extra ephemeral data that will only be used on server rendered forms. First I refactored the shouldSkip functions to now just do that work inside the canHydrate methods. This makes the Config bindings a little less surface area but it also helps us optimize a bit since we now can look at the code together and find shared paths. canHydrate returns the instance if it matches, that used to just be there to refine the type but it can also be used to just return a different instance later that we find. If we don't find one, we'll bail out and error regardless so no need to skip past anything. DiffTrain build for [67f4fb0](67f4fb0)
1 parent cae0d1b commit 6476ee0

15 files changed

+1548
-1758
lines changed

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8ea96ef84d8f08ed1846dec9e8ed20d2225db0d3
1+
67f4fb02130b1fe1856289e3b66bb0b8cca57ff7

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if (
2727
}
2828
"use strict";
2929

30-
var ReactVersion = "18.3.0-www-modern-32c95640";
30+
var ReactVersion = "18.3.0-www-modern-66e1909a";
3131

3232
// ATTENTION
3333
// When adding new symbols to this file,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function _assertThisInitialized(self) {
6969
return self;
7070
}
7171

72-
var ReactVersion = "18.3.0-www-classic-dfc141bd";
72+
var ReactVersion = "18.3.0-www-classic-993a41e1";
7373

7474
var LegacyRoot = 0;
7575
var ConcurrentRoot = 1;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9859,7 +9859,7 @@ var slice = Array.prototype.slice,
98599859
return null;
98609860
},
98619861
bundleType: 0,
9862-
version: "18.3.0-www-modern-aa18893b",
9862+
version: "18.3.0-www-modern-939f40c9",
98639863
rendererPackageName: "react-art"
98649864
};
98659865
var internals$jscomp$inline_1305 = {
@@ -9890,7 +9890,7 @@ var internals$jscomp$inline_1305 = {
98909890
scheduleRoot: null,
98919891
setRefreshHandler: null,
98929892
getCurrentFiber: null,
9893-
reconcilerVersion: "18.3.0-www-modern-aa18893b"
9893+
reconcilerVersion: "18.3.0-www-modern-939f40c9"
98949894
};
98959895
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
98969896
var hook$jscomp$inline_1306 = __REACT_DEVTOOLS_GLOBAL_HOOK__;

0 commit comments

Comments
 (0)