Skip to content

Commit bdd0074

Browse files
committed
Remove startTransition and useActionState from react-server condition of react (#29753)
<!-- Thanks for submitting a pull request! We appreciate you spending the time to work on these changes. Please provide enough information so that others can review your pull request. The three fields below are mandatory. Before submitting a pull request, please make sure the following is done: 1. Fork [the repository](https://github.com/facebook/react) and create your branch from `main`. 2. Run `yarn` in the repository root. 3. If you've fixed a bug or added code that should be tested, add tests! 4. Ensure the test suite passes (`yarn test`). Tip: `yarn test --watch TestName` is helpful in development. 5. Run `yarn test --prod` to test in the production environment. It supports the same options as `yarn test`. 6. If you need a debugger, run `yarn test --debug --watch TestName`, open `chrome://inspect`, and press "Inspect". 7. Format your code with [prettier](https://github.com/prettier/prettier) (`yarn prettier`). 8. Make sure your code lints (`yarn lint`). Tip: `yarn linc` to only check changed files. 9. Run the [Flow](https://flowtype.org/) type checks (`yarn flow`). 10. If you haven't already, complete the CLA. Learn more about contributing: https://reactjs.org/docs/how-to-contribute.html --> ## Summary Remove `startTransition` and `useActionState` from `react-server` condition of react, as they should only stay in client bundle. This will reduce the server bundle of react itself. Found this while tracing where the `process.emit` was called. <!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? --> ## How did you test this change? <!-- Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes the user interface. How exactly did you verify that your PR solves the issue you wanted to solve? If you leave this empty, your PR will very likely be closed. --> DiffTrain build for commit 9185b9b.
1 parent 29f0ad2 commit bdd0074

File tree

14 files changed

+36
-36
lines changed

14 files changed

+36
-36
lines changed

compiled-rn/VERSION_NATIVE_FB

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
19.0.0-native-fb-a26e90c29c-20240604
1+
19.0.0-native-fb-9185b9b1e4-20240604

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<ae2e152b287aa3448cf7d66dac0cf48a>>
10+
* @generated SignedSource<<ea75ea9613da3d2148dcb675e26da316>>
1111
*/
1212

1313
'use strict';
@@ -23580,7 +23580,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
2358023580
return root;
2358123581
}
2358223582

23583-
var ReactVersion = '19.0.0-native-fb-a26e90c29c-20240604';
23583+
var ReactVersion = '19.0.0-native-fb-9185b9b1e4-20240604';
2358423584

2358523585
/*
2358623586
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<d8b56a907c531061ecec4e7ef9d06af1>>
10+
* @generated SignedSource<<af2ca61b2ffeb3b683c4615cf885cebf>>
1111
*/
1212

1313
"use strict";
@@ -9336,7 +9336,7 @@ var devToolsConfig$jscomp$inline_1048 = {
93369336
throw Error("TestRenderer does not support findFiberByHostInstance()");
93379337
},
93389338
bundleType: 0,
9339-
version: "19.0.0-native-fb-a26e90c29c-20240604",
9339+
version: "19.0.0-native-fb-9185b9b1e4-20240604",
93409340
rendererPackageName: "react-test-renderer"
93419341
};
93429342
var internals$jscomp$inline_1235 = {
@@ -9367,7 +9367,7 @@ var internals$jscomp$inline_1235 = {
93679367
scheduleRoot: null,
93689368
setRefreshHandler: null,
93699369
getCurrentFiber: null,
9370-
reconcilerVersion: "19.0.0-native-fb-a26e90c29c-20240604"
9370+
reconcilerVersion: "19.0.0-native-fb-9185b9b1e4-20240604"
93719371
};
93729372
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
93739373
var hook$jscomp$inline_1236 = __REACT_DEVTOOLS_GLOBAL_HOOK__;

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<f1e0294b882ff59a78948de1418ad52f>>
10+
* @generated SignedSource<<53173415e411d2454d4825a7e99ba296>>
1111
*/
1212

1313
"use strict";
@@ -9958,7 +9958,7 @@ var devToolsConfig$jscomp$inline_1131 = {
99589958
throw Error("TestRenderer does not support findFiberByHostInstance()");
99599959
},
99609960
bundleType: 0,
9961-
version: "19.0.0-native-fb-a26e90c29c-20240604",
9961+
version: "19.0.0-native-fb-9185b9b1e4-20240604",
99629962
rendererPackageName: "react-test-renderer"
99639963
};
99649964
(function (internals) {
@@ -10002,7 +10002,7 @@ var devToolsConfig$jscomp$inline_1131 = {
1000210002
scheduleRoot: null,
1000310003
setRefreshHandler: null,
1000410004
getCurrentFiber: null,
10005-
reconcilerVersion: "19.0.0-native-fb-a26e90c29c-20240604"
10005+
reconcilerVersion: "19.0.0-native-fb-9185b9b1e4-20240604"
1000610006
});
1000710007
exports._Scheduler = Scheduler;
1000810008
exports.act = act;

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-dev.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<b2644209867f5ec4f2bd9a04998c1ee3>>
10+
* @generated SignedSource<<ecec746b6b704d12e3d87e7170d4817d>>
1111
*/
1212

1313
'use strict';
@@ -24,7 +24,7 @@ if (
2424
}
2525
var dynamicFlagsUntyped = require('ReactNativeInternalFeatureFlags');
2626

27-
var ReactVersion = '19.0.0-native-fb-a26e90c29c-20240604';
27+
var ReactVersion = '19.0.0-native-fb-9185b9b1e4-20240604';
2828

2929
// Re-export dynamic flags from the internal module.
3030
var dynamicFlags = dynamicFlagsUntyped; // We destructure each value before re-exporting to avoid a dynamic look-up on

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-prod.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<9c73f2844aefc36a622a2268ed3ec892>>
10+
* @generated SignedSource<<0e93f3cbafa2848a76f1daba1186fe57>>
1111
*/
1212

1313
"use strict";
@@ -604,4 +604,4 @@ exports.useSyncExternalStore = function (
604604
exports.useTransition = function () {
605605
return ReactSharedInternals.H.useTransition();
606606
};
607-
exports.version = "19.0.0-native-fb-a26e90c29c-20240604";
607+
exports.version = "19.0.0-native-fb-9185b9b1e4-20240604";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-profiling.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<acaf8cb87e6f0efd4063121fbadcb9e5>>
10+
* @generated SignedSource<<6a4c8c16ae36d66d52f03e58b6962a29>>
1111
*/
1212

1313
"use strict";
@@ -608,7 +608,7 @@ exports.useSyncExternalStore = function (
608608
exports.useTransition = function () {
609609
return ReactSharedInternals.H.useTransition();
610610
};
611-
exports.version = "19.0.0-native-fb-a26e90c29c-20240604";
611+
exports.version = "19.0.0-native-fb-9185b9b1e4-20240604";
612612
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
613613
"function" ===
614614
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a26e90c29cfa841d3e2bc08876c5929d5680fb6d
1+
9185b9b1e4a716f90774c4c5501fe3925bc7c402

compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<237c95541e4cd66f892d939d9f01ba19>>
10+
* @generated SignedSource<<24a833c07531f67100ef2da060b7e5ca>>
1111
*/
1212

1313
'use strict';
@@ -26315,7 +26315,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
2631526315
return root;
2631626316
}
2631726317

26318-
var ReactVersion = '19.0.0-rc-a26e90c29c-20240604';
26318+
var ReactVersion = '19.0.0-rc-9185b9b1e4-20240604';
2631926319

2632026320
/*
2632126321
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol

compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-prod.fb.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<08d29097ef8f04ec1e655d4321922476>>
10+
* @generated SignedSource<<2a766f06b0f83eea3e0443173abaad9c>>
1111
*/
1212

1313
"use strict";
@@ -10589,7 +10589,7 @@ var roots = new Map(),
1058910589
devToolsConfig$jscomp$inline_1125 = {
1059010590
findFiberByHostInstance: getInstanceFromNode,
1059110591
bundleType: 0,
10592-
version: "19.0.0-rc-a26e90c29c-20240604",
10592+
version: "19.0.0-rc-9185b9b1e4-20240604",
1059310593
rendererPackageName: "react-native-renderer",
1059410594
rendererConfig: {
1059510595
getInspectorDataForInstance: getInspectorDataForInstance,
@@ -10632,7 +10632,7 @@ var internals$jscomp$inline_1351 = {
1063210632
scheduleRoot: null,
1063310633
setRefreshHandler: null,
1063410634
getCurrentFiber: null,
10635-
reconcilerVersion: "19.0.0-rc-a26e90c29c-20240604"
10635+
reconcilerVersion: "19.0.0-rc-9185b9b1e4-20240604"
1063610636
};
1063710637
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1063810638
var hook$jscomp$inline_1352 = __REACT_DEVTOOLS_GLOBAL_HOOK__;

0 commit comments

Comments
 (0)