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
[Flight] Allow custom encoding of the form action (#27563)
There are three parts to an RSC set up:
- React
- Bundler
- Endpoints
Most customizability is in the bundler configs. We deal with those as
custom builds.
To create a full set up, you need to also configure ways to expose end
points for example to call a Server Action. That's typically not
something the bundler is responsible for even though it's responsible
for gathering the end points that needs generation. Exposing which
endpoints to generate is a responsibility for the bundler.
Typically a meta-framework is responsible for generating the end points.
There's two ways to "call" a Server Action. Through JS and through a
Form. Through JS we expose the `callServer` callback so that the
framework can call the end point.
Forms by default POST back to the current page with an action serialized
into form data, which we have a decoder helper for. However, this is not
something that React is really opinionated about just like we're not
opinionated about the protocol used by callServer.
This exposes an option to configure the encoding of the form props.
`encodeFormAction` is to the SSR is what `callServer` is to the Browser.
DiffTrain build for commit 8d48183.
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
@@ -25917,7 +25917,7 @@ if (__DEV__) {
25917
25917
return root;
25918
25918
}
25919
25919
25920
-
var ReactVersion = "18.3.0-canary-7a32d718b-20240212";
25920
+
var ReactVersion = "18.3.0-canary-8d4818329-20240212";
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
@@ -9167,7 +9167,7 @@ var devToolsConfig$jscomp$inline_1025 = {
9167
9167
throwError("TestRenderer does not support findFiberByHostInstance()");
9168
9168
},
9169
9169
bundleType: 0,
9170
-
version: "18.3.0-canary-7a32d718b-20240212",
9170
+
version: "18.3.0-canary-8d4818329-20240212",
9171
9171
rendererPackageName: "react-test-renderer"
9172
9172
};
9173
9173
varinternals$jscomp$inline_1206={
@@ -9198,7 +9198,7 @@ var internals$jscomp$inline_1206 = {
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
@@ -9595,7 +9595,7 @@ var devToolsConfig$jscomp$inline_1067 = {
9595
9595
throwError("TestRenderer does not support findFiberByHostInstance()");
9596
9596
},
9597
9597
bundleType: 0,
9598
-
version: "18.3.0-canary-7a32d718b-20240212",
9598
+
version: "18.3.0-canary-8d4818329-20240212",
9599
9599
rendererPackageName: "react-test-renderer"
9600
9600
};
9601
9601
varinternals$jscomp$inline_1247={
@@ -9626,7 +9626,7 @@ var internals$jscomp$inline_1247 = {
0 commit comments