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 AndyPengc12 committed Apr 15, 2024
1 parent 512cf6e commit 49858ba
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 49858ba

Please sign in to comment.