Override .bind on Server References on the Client (#27282)

That way when you bind arguments to a Server Reference, it's still a
server reference and works with progressive enhancement.

This already works on the Server (RSC) layer.

DiffTrain build for commit https://github.com/facebook/react/commit/b798223a620dad77077d27e53cc99cbd54312d99.
This commit is contained in:
sebmarkbage
2023-08-26 01:45:53 +00:00
parent ebd79e9b88
commit ad42e6c8ed
7 changed files with 9 additions and 9 deletions
@@ -23981,7 +23981,7 @@ function createFiberRoot(
return root;
}
var ReactVersion = "18.3.0-canary-ab31a9ed2-20230824";
var ReactVersion = "18.3.0-canary-b798223a6-20230825";
// Might add PROFILE later.
@@ -8612,7 +8612,7 @@ var devToolsConfig$jscomp$inline_1029 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-ab31a9ed2-20230824",
version: "18.3.0-canary-b798223a6-20230825",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1228 = {
@@ -8643,7 +8643,7 @@ var internals$jscomp$inline_1228 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-ab31a9ed2-20230824"
reconcilerVersion: "18.3.0-canary-b798223a6-20230825"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1229 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -9038,7 +9038,7 @@ var devToolsConfig$jscomp$inline_1071 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-ab31a9ed2-20230824",
version: "18.3.0-canary-b798223a6-20230825",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1269 = {
@@ -9069,7 +9069,7 @@ var internals$jscomp$inline_1269 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-ab31a9ed2-20230824"
reconcilerVersion: "18.3.0-canary-b798223a6-20230825"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1270 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -27,7 +27,7 @@ if (
}
"use strict";
var ReactVersion = "18.3.0-canary-ab31a9ed2-20230824";
var ReactVersion = "18.3.0-canary-b798223a6-20230825";
// ATTENTION
// When adding new symbols to this file,
@@ -616,4 +616,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-ab31a9ed2-20230824";
exports.version = "18.3.0-canary-b798223a6-20230825";
@@ -619,7 +619,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-ab31a9ed2-20230824";
exports.version = "18.3.0-canary-b798223a6-20230825";
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
@@ -1 +1 @@
ab31a9ed28d340172440e4b12e27d2af689249b3
b798223a620dad77077d27e53cc99cbd54312d99