Skip to content

Commit

Permalink
Update use-submission.mdx (#972)
Browse files Browse the repository at this point in the history
  • Loading branch information
russbiggs authored Dec 1, 2024
1 parent 505f86d commit 534ce8a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,14 @@ function Component() {

return (
<>
<Show when={submit.error}>
<Show when={submission.error}>
{(error) => (
<div>
<p>Error: {error.message}</p>
<button onClick={() => submit.clear()}>
<button onClick={() => submission.clear()}>
Clear
</button>
<button onClick={async () => submit.retry()}>
<button onClick={async () => submission.retry()}>
Retry
</button>
</div>
Expand All @@ -173,4 +173,4 @@ function Component() {
</>
)
}
```
```

0 comments on commit 534ce8a

Please sign in to comment.