Remove XHR support from Flight (#26827)

We currently support passing an XHR request to Flight for broader compat
and possibly better perf than `fetch()`. However, it's a little tricky
because ideally the RSC protocol is really meant to support binary data
too. XHR does support binary but it doesn't support it while also
streaming.

We could maybe support this only when you know it's going to be only
text streams but it has some limitations in how we can encode separators
if we can't use binary.

Nobody is really asking for this so we might as well delete it.

DiffTrain build for commit https://github.com/facebook/react/commit/e6fae308e9300ca545003ac147cc7e4e541f561c.
This commit is contained in:
sebmarkbage
2023-06-03 20:07:58 +00:00
parent 696f0ab209
commit ae6b08c855
7 changed files with 9 additions and 9 deletions
@@ -23922,7 +23922,7 @@ function createFiberRoot(
return root;
}
var ReactVersion = "18.3.0-canary-f181ba8aa-20230603";
var ReactVersion = "18.3.0-canary-e6fae308e-20230603";
// Might add PROFILE later.
@@ -8617,7 +8617,7 @@ var devToolsConfig$jscomp$inline_1031 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-f181ba8aa-20230603",
version: "18.3.0-canary-e6fae308e-20230603",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1230 = {
@@ -8648,7 +8648,7 @@ var internals$jscomp$inline_1230 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-f181ba8aa-20230603"
reconcilerVersion: "18.3.0-canary-e6fae308e-20230603"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1231 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -9043,7 +9043,7 @@ var devToolsConfig$jscomp$inline_1073 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-f181ba8aa-20230603",
version: "18.3.0-canary-e6fae308e-20230603",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1271 = {
@@ -9074,7 +9074,7 @@ var internals$jscomp$inline_1271 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-f181ba8aa-20230603"
reconcilerVersion: "18.3.0-canary-e6fae308e-20230603"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1272 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -27,7 +27,7 @@ if (
}
"use strict";
var ReactVersion = "18.3.0-canary-f181ba8aa-20230603";
var ReactVersion = "18.3.0-canary-e6fae308e-20230603";
// ATTENTION
// When adding new symbols to this file,
@@ -642,4 +642,4 @@ exports.useSyncExternalStore = function (
);
};
exports.useTransition = useTransition;
exports.version = "18.3.0-canary-f181ba8aa-20230603";
exports.version = "18.3.0-canary-e6fae308e-20230603";
@@ -645,7 +645,7 @@ exports.useSyncExternalStore = function (
);
};
exports.useTransition = useTransition;
exports.version = "18.3.0-canary-f181ba8aa-20230603";
exports.version = "18.3.0-canary-e6fae308e-20230603";
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
@@ -1 +1 @@
f181ba8aa6339d62f6e2572109c61242606f16b3
e6fae308e9300ca545003ac147cc7e4e541f561c