[errors] s/form state/action state (#35790)

Noticed `useActionState` error still refers to "form state" while
writing the docs.
This commit is contained in:
Ricky
2026-03-04 14:20:03 -05:00
committed by GitHub
parent d3a425d6c2
commit 342225456f
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1092,7 +1092,7 @@ describe('ReactDOMForm', () => {
const root = ReactDOMClient.createRoot(container);
await act(async () => {
root.render(<App />);
await waitForThrow('Cannot update form state while rendering.');
await waitForThrow('Cannot update action state while rendering.');
});
});
+1 -1
View File
@@ -2085,7 +2085,7 @@ function dispatchActionState<S, P>(
payload: P,
): void {
if (isRenderPhaseUpdate(fiber)) {
throw new Error('Cannot update form state while rendering.');
throw new Error('Cannot update action state while rendering.');
}
const currentAction = actionQueue.action;
+1 -1
View File
@@ -470,7 +470,7 @@
"482": "An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",
"483": "Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",
"484": "A Server Component was postponed. The reason is omitted in production builds to avoid leaking sensitive details.",
"485": "Cannot update form state while rendering.",
"485": "Cannot update action state while rendering.",
"486": "It should not be possible to postpone at the root. This is a bug in React.",
"487": "We should not have any resumable nodes in the shell. This is a bug in React.",
"488": "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.",