From 9967ded394d85af74e0ecdbf00feeb7921a28142 Mon Sep 17 00:00:00 2001
From: "Yousef M. El-Gohary"
 <30435916+yousefelgoharyx@users.noreply.github.com>
Date: Sun, 19 May 2024 05:36:13 +0300
Subject: [PATCH] Fix the order of the returns of useActionState (#6864)

---
 src/content/reference/rsc/server-actions.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/content/reference/rsc/server-actions.md b/src/content/reference/rsc/server-actions.md
index cdabf5ad..06613cb7 100644
--- a/src/content/reference/rsc/server-actions.md
+++ b/src/content/reference/rsc/server-actions.md
@@ -173,7 +173,7 @@ You can compose Server Actions with `useActionState` for the common case where y
 import {updateName} from './actions';
 
 function UpdateName() {
-  const [submitAction, state, isPending] = useActionState(updateName, {error: null});
+  const [state, submitAction, isPending] = useActionState(updateName, {error: null});
 
   return (
     <form action={submitAction}>