Skip to content

Commit db5930d

Browse files
committed
Remove legacy hydration mode (#28440)
While Meta is still using legacy mode and we can't remove completely, Meta is not using legacy hydration so we should be able to remove that. This is just the first step. Once removed, we can vastly simplify the DOMConfig for hydration. This will have to be rebased when tests are upgraded. DiffTrain build for commit 670d61b.
1 parent 9ba136d commit db5930d

File tree

10 files changed

+1442
-1627
lines changed

10 files changed

+1442
-1627
lines changed

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-dev.js

+2-11
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<21dac50eb838d3086d9a7abc82a7da35>>
10+
* @generated SignedSource<<3512f830a7f7738685a3f378f1fc8206>>
1111
*/
1212

1313
"use strict";
@@ -14614,15 +14614,6 @@ if (__DEV__) {
1461414614
// This is the first render pass. Attempt to hydrate.
1461514615
pushPrimaryTreeSuspenseHandler(workInProgress); // We should never be hydrating at this point because it is the first pass,
1461614616

14617-
if ((workInProgress.mode & ConcurrentMode) === NoMode) {
14618-
return retrySuspenseComponentWithoutHydrating(
14619-
current,
14620-
workInProgress,
14621-
renderLanes,
14622-
null
14623-
);
14624-
}
14625-
1462614617
if (isSuspenseInstanceFallback()) {
1462714618
// This boundary is in a permanent fallback state. In this case, we'll never
1462814619
// get an update and we'll never be able to hydrate the final content. Let's just try the
@@ -25519,7 +25510,7 @@ if (__DEV__) {
2551925510
return root;
2552025511
}
2552125512

25522-
var ReactVersion = "19.0.0-canary-d06a69d2";
25513+
var ReactVersion = "19.0.0-canary-ce2d02ca";
2552325514

2552425515
// Might add PROFILE later.
2552525516

0 commit comments

Comments
 (0)