diff --git a/src/content/reference/react/useActionState.md b/src/content/reference/react/useActionState.md index f83f6bdc710..387b64bc22f 100644 --- a/src/content/reference/react/useActionState.md +++ b/src/content/reference/react/useActionState.md @@ -84,12 +84,12 @@ If used with a Server Function, `useActionState` allows the server's response fr Call `useActionState` at the top level of your component to access the return value of an action from the last time a form was submitted. -```js [[1, 5, "state"], [2, 5, "formAction"], [3, 5, "action"], [4, 5, "null"], [2, 8, "formAction"]] +```js [[1, 5, "state"], [2, 5, "formAction"], [3,5, "isPending"], [4, 5, "action"], [5, 5, "null"], [2, 8, "formAction"]] import { useActionState } from 'react'; import { action } from './actions.js'; function MyComponent() { - const [state, formAction] = useActionState(action, null); + const [state, formAction, isPending] = useActionState(action, null); // ... return (