You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consume the RSC stream twice in the Flight fixture (#28353)
We have an unresolved conflict where the Flight client wants to execute
inside Fizz to emit side-effects like preloads (which can be early) into
that stream. However, the FormState API requires the state to be passed
at the root, so if you're getting that through the RSC payload it's a
Catch 22.
#27314 used a hack to mutate the form state array to fill it in later,
but that doesn't actually work because it's not always an array. It's
sometimes null like if there wasn't a POST. This lead to a bunch of
hydration errors - which doesn't have the best error message for this
case neither. It probably should error with something that specifies
that it's form state.
This fixes it by teeing the stream into two streams and consuming it
with two Flight clients. One to read the form state and one to emit
side-effects and read the root.
DiffTrain build for commit 6a44f35.
Copy file name to clipboardExpand all lines: compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-dev.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -25633,7 +25633,7 @@ if (__DEV__) {
25633
25633
return root;
25634
25634
}
25635
25635
25636
-
var ReactVersion = "18.3.0-canary-ef72271c2-20240216";
25636
+
var ReactVersion = "18.3.0-canary-6a44f352e-20240216";
Copy file name to clipboardExpand all lines: compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-prod.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -9179,7 +9179,7 @@ var devToolsConfig$jscomp$inline_1018 = {
9179
9179
throwError("TestRenderer does not support findFiberByHostInstance()");
9180
9180
},
9181
9181
bundleType: 0,
9182
-
version: "18.3.0-canary-ef72271c2-20240216",
9182
+
version: "18.3.0-canary-6a44f352e-20240216",
9183
9183
rendererPackageName: "react-test-renderer"
9184
9184
};
9185
9185
varinternals$jscomp$inline_1199={
@@ -9210,7 +9210,7 @@ var internals$jscomp$inline_1199 = {
Copy file name to clipboardExpand all lines: compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-profiling.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -9607,7 +9607,7 @@ var devToolsConfig$jscomp$inline_1060 = {
9607
9607
throwError("TestRenderer does not support findFiberByHostInstance()");
9608
9608
},
9609
9609
bundleType: 0,
9610
-
version: "18.3.0-canary-ef72271c2-20240216",
9610
+
version: "18.3.0-canary-6a44f352e-20240216",
9611
9611
rendererPackageName: "react-test-renderer"
9612
9612
};
9613
9613
varinternals$jscomp$inline_1240={
@@ -9638,7 +9638,7 @@ var internals$jscomp$inline_1240 = {
0 commit comments