Skip to content

Commit 9967ded

Browse files
Fix the order of the returns of useActionState (#6864)
1 parent e7c52aa commit 9967ded

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/reference/rsc/server-actions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ You can compose Server Actions with `useActionState` for the common case where y
173173
import {updateName} from './actions';
174174

175175
function UpdateName() {
176-
const [submitAction, state, isPending] = useActionState(updateName, {error: null});
176+
const [state, submitAction, isPending] = useActionState(updateName, {error: null});
177177

178178
return (
179179
<form action={submitAction}>

0 commit comments

Comments
 (0)