Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b2d4c12

Browse files
committedMar 28, 2024··
s/form state/action state
1 parent 5a75f9e commit b2d4c12

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
@@ -6208,8 +6208,8 @@ describe('ReactDOMFizzServer', () => {
62086208
// Because of the render phase update above, this component is evaluated
62096209
// multiple times (even during SSR), but it should only emit a single
62106210
// marker per useActionState instance.
6211-
const [formState] = useActionState(action, 0);
6212-
const text = `${readText('Child')}:${formState}:${localState}`;
6211+
const [actionState] = useActionState(action, 0);
6212+
const text = `${readText('Child')}:${actionState}:${localState}`;
62136213
return (
62146214
<div id="child" ref={childRef}>
62156215
{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)
Please sign in to comment.