dillon1000/react

Commit

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.
Browse files
Changed paths9 files
First-parent comparison
M packages/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 Modified
Patch

Files changed

Rendering syntax-highlighted changes…