mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[DOM] Add unstable_batchedUpdates to server-rendering-stub (#27028)
`unstable_batchedUpdates` shouldn't really be called on the server but the semantics are clear enough and we can provide a trivial implementation that calls the provided callback so we are adding it to the server-rendering-stub. This means we will also keep it around when we make the top level react-dom exports match the server-rendering-stub in the next major DiffTrain build for commit https://github.com/facebook/react/commit/1fdacbefd641d0ac1c97b159760eb03768771049.
This commit is contained in:
+1
-1
@@ -23903,7 +23903,7 @@ function createFiberRoot(
|
||||
return root;
|
||||
}
|
||||
|
||||
var ReactVersion = "18.3.0-canary-7f362de15-20230630";
|
||||
var ReactVersion = "18.3.0-canary-1fdacbefd-20230630";
|
||||
|
||||
// Might add PROFILE later.
|
||||
|
||||
|
||||
+2
-2
@@ -8616,7 +8616,7 @@ var devToolsConfig$jscomp$inline_1031 = {
|
||||
throw Error("TestRenderer does not support findFiberByHostInstance()");
|
||||
},
|
||||
bundleType: 0,
|
||||
version: "18.3.0-canary-7f362de15-20230630",
|
||||
version: "18.3.0-canary-1fdacbefd-20230630",
|
||||
rendererPackageName: "react-test-renderer"
|
||||
};
|
||||
var internals$jscomp$inline_1230 = {
|
||||
@@ -8647,7 +8647,7 @@ var internals$jscomp$inline_1230 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-canary-7f362de15-20230630"
|
||||
reconcilerVersion: "18.3.0-canary-1fdacbefd-20230630"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1231 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
|
||||
+2
-2
@@ -9042,7 +9042,7 @@ var devToolsConfig$jscomp$inline_1073 = {
|
||||
throw Error("TestRenderer does not support findFiberByHostInstance()");
|
||||
},
|
||||
bundleType: 0,
|
||||
version: "18.3.0-canary-7f362de15-20230630",
|
||||
version: "18.3.0-canary-1fdacbefd-20230630",
|
||||
rendererPackageName: "react-test-renderer"
|
||||
};
|
||||
var internals$jscomp$inline_1271 = {
|
||||
@@ -9073,7 +9073,7 @@ var internals$jscomp$inline_1271 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-canary-7f362de15-20230630"
|
||||
reconcilerVersion: "18.3.0-canary-1fdacbefd-20230630"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1272 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ if (
|
||||
}
|
||||
"use strict";
|
||||
|
||||
var ReactVersion = "18.3.0-canary-7f362de15-20230630";
|
||||
var ReactVersion = "18.3.0-canary-1fdacbefd-20230630";
|
||||
|
||||
// ATTENTION
|
||||
// When adding new symbols to this file,
|
||||
|
||||
+1
-1
@@ -623,4 +623,4 @@ exports.useSyncExternalStore = function (
|
||||
);
|
||||
};
|
||||
exports.useTransition = useTransition;
|
||||
exports.version = "18.3.0-canary-7f362de15-20230630";
|
||||
exports.version = "18.3.0-canary-1fdacbefd-20230630";
|
||||
|
||||
+1
-1
@@ -626,7 +626,7 @@ exports.useSyncExternalStore = function (
|
||||
);
|
||||
};
|
||||
exports.useTransition = useTransition;
|
||||
exports.version = "18.3.0-canary-7f362de15-20230630";
|
||||
exports.version = "18.3.0-canary-1fdacbefd-20230630";
|
||||
|
||||
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
||||
if (
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
7f362de1588d98438787d652941533e21f2f332d
|
||||
1fdacbefd641d0ac1c97b159760eb03768771049
|
||||
|
||||
Reference in New Issue
Block a user