Skip to content

Commit

Permalink
pull implementations from the right react-dom (facebook#27471)
Browse files Browse the repository at this point in the history
should have imported from the stub implementation. this blew up the
server rendering stub size (effectively pulling in the entire client
bundle)
  • Loading branch information
gnoff authored and alunyov committed Oct 11, 2023
1 parent 08a46a3 commit cdad694
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/react-dom/server-rendering-stub.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ export {
} from './src/server/ReactDOMServerRenderingStub';

import type {FormStatus} from 'react-dom-bindings/src/shared/ReactDOMFormActions';
import {useFormStatus, useFormState} from './src/client/ReactDOM';
import {
useFormStatus,
useFormState,
} from './src/server/ReactDOMServerRenderingStub';

export function experimental_useFormStatus(): FormStatus {
if (__DEV__) {
Expand Down

0 comments on commit cdad694

Please sign in to comment.