Skip to content

Commit 05797cc

Browse files
authored
s/form state/action state (#28631)
Rename internals from "form state" to "action state"
1 parent 299a9c0 commit 05797cc

File tree

8 files changed

+116
-113
lines changed

8 files changed

+116
-113
lines changed

packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6187,8 +6187,8 @@ describe('ReactDOMFizzServer', () => {
61876187
// Because of the render phase update above, this component is evaluated
61886188
// multiple times (even during SSR), but it should only emit a single
61896189
// marker per useActionState instance.
6190-
const [formState] = useActionState(action, 0);
6191-
const text = `${readText('Child')}:${formState}:${localState}`;
6190+
const [actionState] = useActionState(action, 0);
6191+
const text = `${readText('Child')}:${actionState}:${localState}`;
61926192
return (
61936193
<div id="child" ref={childRef}>
61946194
{text}

packages/react-dom/src/__tests__/ReactDOMForm-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,7 @@ describe('ReactDOMForm', () => {
12801280
});
12811281

12821282
// @gate enableAsyncActions
1283-
test('useFormState works in StrictMode', async () => {
1283+
test('useActionState works in StrictMode', async () => {
12841284
let actionCounter = 0;
12851285
async function action(state, type) {
12861286
actionCounter++;

0 commit comments

Comments
 (0)