Skip to content

Commit

Permalink
Add useFormStatus to server rendering stub
Browse files Browse the repository at this point in the history
I don't know how to write a test for this. The test I wrote when I
implemented the feature passes, which is why I didn't catch this before: https://github.com/facebook/react/blob/efb381bbf981aedbf4eb9e1bd0e6e30abce266d1/packages/react-dom/src/__tests__/ReactDOMFizzForm-test.js#L369-L383
  • Loading branch information
acdlite committed May 7, 2023
1 parent efb381b commit c6a0e59
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*/

export {preinit, preload, preconnect, prefetchDNS} from '../ReactDOMFloat';
export {useFormStatus as experimental_useFormStatus} from 'react-dom-bindings/src/shared/ReactDOMFormActions';

export function createPortal() {
throw new Error(
Expand Down

0 comments on commit c6a0e59

Please sign in to comment.