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 6, 2023
1 parent efb381b commit 034dbdb
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} from 'react-dom-bindings/src/shared/ReactDOMFormActions';

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

0 comments on commit 034dbdb

Please sign in to comment.