Skip to content

Commit 49858ba

Browse files
gnoffAndyPengc12
authored andcommitted
pull implementations from the right react-dom (facebook#27471)
should have imported from the stub implementation. this blew up the server rendering stub size (effectively pulling in the entire client bundle)
1 parent 512cf6e commit 49858ba

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/react-dom/server-rendering-stub.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ export {
3030
} from './src/server/ReactDOMServerRenderingStub';
3131

3232
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';
3437

3538
export function experimental_useFormStatus(): FormStatus {
3639
if (__DEV__) {

0 commit comments

Comments
 (0)