Skip to content

Commit

Permalink
docs(mutations): Clarify where submission is coming from in the OL ex…
Browse files Browse the repository at this point in the history
…ample (#301)
  • Loading branch information
machour authored Oct 10, 2024
1 parent 665f69b commit 9e2ad6f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions md/marketing/mutations/mutations.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ export default function NewInvoice() {

---

```tsx [3-9]
```tsx [3-8]
export default function NewInvoice() {
const { formData } = useNavigation();
const { formData, state } = useNavigation();
const submission = state !== "idle";
return submission ? (
<Invoice
invoice={Object.fromEntries(formData)}
Expand Down

0 comments on commit 9e2ad6f

Please sign in to comment.