diff --git a/src/content/reference/react/useActionState.md b/src/content/reference/react/useActionState.md index 2d4c7958761..d14a3834757 100644 --- a/src/content/reference/react/useActionState.md +++ b/src/content/reference/react/useActionState.md @@ -7,7 +7,7 @@ title: useActionState `useActionState` is a Hook that allows you to update state based on the result of a form action. ```js -const [state, formAction] = useActionState(fn, initialState, permalink?); +const [state, formAction, isPending] = useActionState(fn, initialState, permalink?); ``` @@ -39,7 +39,7 @@ async function increment(previousState, formData) { } function StatefulForm({}) { - const [state, formAction] = useActionState(increment, 0); + const [state, formAction, isPending] = useActionState(increment, 0); return (