react-dom/server-rendering-stub: restore experimental prefix for useFormState and useFormStatus (#27470)

in #27461 the experimental prefix was added back for `useFormState` and
`useFormStatus` in react-dom. However these functions are also exported
from the server rendering stub too and when using the stub with
experimental prefixes their absence causes unexpected errors.

This change adds back the experimental prefix for these two hooks to
match the experimental build of react-dom.

DiffTrain build for commit https://github.com/facebook/react/commit/546178f9109424f6a0176ea8702a7620c4417569.
This commit is contained in:
gnoff
2023-10-05 15:59:06 +00:00
parent 51b6c71883
commit fea354cb8c
7 changed files with 9 additions and 9 deletions
@@ -24772,7 +24772,7 @@ function createFiberRoot(
return root;
}
var ReactVersion = "18.3.0-canary-16619f106-20231005";
var ReactVersion = "18.3.0-canary-546178f91-20231005";
// Might add PROFILE later.
@@ -8978,7 +8978,7 @@ var devToolsConfig$jscomp$inline_998 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-16619f106-20231005",
version: "18.3.0-canary-546178f91-20231005",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1191 = {
@@ -9009,7 +9009,7 @@ var internals$jscomp$inline_1191 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-16619f106-20231005"
reconcilerVersion: "18.3.0-canary-546178f91-20231005"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1192 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -9404,7 +9404,7 @@ var devToolsConfig$jscomp$inline_1040 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-16619f106-20231005",
version: "18.3.0-canary-546178f91-20231005",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1232 = {
@@ -9435,7 +9435,7 @@ var internals$jscomp$inline_1232 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-16619f106-20231005"
reconcilerVersion: "18.3.0-canary-546178f91-20231005"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1233 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -27,7 +27,7 @@ if (
}
"use strict";
var ReactVersion = "18.3.0-canary-16619f106-20231005";
var ReactVersion = "18.3.0-canary-546178f91-20231005";
// 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-16619f106-20231005";
exports.version = "18.3.0-canary-546178f91-20231005";
@@ -619,7 +619,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-16619f106-20231005";
exports.version = "18.3.0-canary-546178f91-20231005";
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
@@ -1 +1 @@
16619f106ab5ba8e6aca19d55be46cce22e4a7ff
546178f9109424f6a0176ea8702a7620c4417569