diff --git a/src/content/reference/rsc/server-actions.md b/src/content/reference/rsc/server-actions.md index cdabf5ad1c2..06613cb7cf8 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 (