Skip to content

Commit 845c10a

Browse files
committed
Refactor React Server entrypoint to not depend on the client one (#27940)
This refactors the Server Components entrypoint for the `react` package (ReactServer.js) so that it doesn't depend on the client entrypoint (React.js). I also renamed React.js to ReactClient.js to make the separation clearer. This structure will make it easier to add client-only and server-only features. DiffTrain build for commit f16344e.
1 parent e16614f commit 845c10a

File tree

7 files changed

+1403
-1402
lines changed

7 files changed

+1403
-1402
lines changed

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25540,7 +25540,7 @@ if (__DEV__) {
2554025540
return root;
2554125541
}
2554225542

25543-
var ReactVersion = "18.3.0-canary-5d1b15a4f-20240116";
25543+
var ReactVersion = "18.3.0-canary-f16344ea6-20240116";
2554425544

2554525545
// Might add PROFILE later.
2554625546

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-prod.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9122,7 +9122,7 @@ var devToolsConfig$jscomp$inline_1037 = {
91229122
throw Error("TestRenderer does not support findFiberByHostInstance()");
91239123
},
91249124
bundleType: 0,
9125-
version: "18.3.0-canary-5d1b15a4f-20240116",
9125+
version: "18.3.0-canary-f16344ea6-20240116",
91269126
rendererPackageName: "react-test-renderer"
91279127
};
91289128
var internals$jscomp$inline_1230 = {
@@ -9153,7 +9153,7 @@ var internals$jscomp$inline_1230 = {
91539153
scheduleRoot: null,
91549154
setRefreshHandler: null,
91559155
getCurrentFiber: null,
9156-
reconcilerVersion: "18.3.0-canary-5d1b15a4f-20240116"
9156+
reconcilerVersion: "18.3.0-canary-f16344ea6-20240116"
91579157
};
91589158
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
91599159
var hook$jscomp$inline_1231 = __REACT_DEVTOOLS_GLOBAL_HOOK__;

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-profiling.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9550,7 +9550,7 @@ var devToolsConfig$jscomp$inline_1079 = {
95509550
throw Error("TestRenderer does not support findFiberByHostInstance()");
95519551
},
95529552
bundleType: 0,
9553-
version: "18.3.0-canary-5d1b15a4f-20240116",
9553+
version: "18.3.0-canary-f16344ea6-20240116",
95549554
rendererPackageName: "react-test-renderer"
95559555
};
95569556
var internals$jscomp$inline_1271 = {
@@ -9581,7 +9581,7 @@ var internals$jscomp$inline_1271 = {
95819581
scheduleRoot: null,
95829582
setRefreshHandler: null,
95839583
getCurrentFiber: null,
9584-
reconcilerVersion: "18.3.0-canary-5d1b15a4f-20240116"
9584+
reconcilerVersion: "18.3.0-canary-f16344ea6-20240116"
95859585
};
95869586
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
95879587
var hook$jscomp$inline_1272 = __REACT_DEVTOOLS_GLOBAL_HOOK__;

0 commit comments

Comments
 (0)