Skip to content

Commit

Permalink
react-dom/server-rendering-stub: restore experimental prefix for `u…
Browse files Browse the repository at this point in the history
…seFormState` 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 546178f.
  • Loading branch information
gnoff committed Oct 5, 2023
1 parent 51b6c71 commit fea354c
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 @@ -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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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__;
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-16619f106-20231005";
var ReactVersion = "18.3.0-canary-546178f91-20231005";

// 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-16619f106-20231005";
exports.version = "18.3.0-canary-546178f91-20231005";
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-16619f106-20231005";
exports.version = "18.3.0-canary-546178f91-20231005";

/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16619f106ab5ba8e6aca19d55be46cce22e4a7ff
546178f9109424f6a0176ea8702a7620c4417569

0 comments on commit fea354c

Please sign in to comment.