dillon1000/react
Commit
Browse files Add pending state to useFormState (#28514)
## Overview Adds a `pending` state to useFormState, which will be replaced by `useActionState` in the next diff. We will keep `useFormState` around for backwards compatibility, but functionally it will work the same as `useActionState`, which has an `isPending` state returned.
Changed paths9 files
First-parent comparisonpackages/react-debug-tools/src/ReactDebugHooks.js ModifiedM packages/react-dom-bindings/src/shared/ReactDOMFormActions.js ModifiedM packages/react-dom/index.experimental.js ModifiedM packages/react-dom/server-rendering-stub.js ModifiedM packages/react-dom/src/__tests__/ReactDOMForm-test.js ModifiedM packages/react-reconciler/src/ReactFiberHooks.js ModifiedM packages/react-reconciler/src/ReactInternalTypes.js ModifiedM packages/react-server-dom-webpack/src/__tests__/ReactFlightDOMForm-test.js ModifiedM packages/react-server/src/ReactFizzHooks.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…