Skip to content

Commit

Permalink
Override .bind on Server References on the Client (#27282)
Browse files Browse the repository at this point in the history
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 b798223.
  • Loading branch information
sebmarkbage committed Aug 26, 2023
1 parent ebd79e9 commit ad42e6c
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ab31a9ed28d340172440e4b12e27d2af689249b3
b798223a620dad77077d27e53cc99cbd54312d99

0 comments on commit ad42e6c

Please sign in to comment.