pull implementations from the right react-dom (#27471)
should have imported from the stub implementation. this blew up the server rendering stub size (effectively pulling in the entire client bundle)
Josh Story committed
Oct 5, 2023 at 09:14 UTC
dddfe688206dafa5646550d351eb9a8e9c53654a
1 file changed
+4
-1
packages/react-dom/server-rendering-stub.js
+4
-1
@@ -30,7 +30,10 @@ export {
30
} from './src/server/ReactDOMServerRenderingStub';
31
32
import type {FormStatus} from 'react-dom-bindings/src/shared/ReactDOMFormActions';
33
-import {useFormStatus, useFormState} from './src/client/ReactDOM';
33
+import {
34
+ useFormStatus,
35
+ useFormState,
36
+} from './src/server/ReactDOMServerRenderingStub';
37
38
export function experimental_useFormStatus(): FormStatus {
39
if (__DEV__) {