Skip to content

Commit 3b64799

Browse files
committed
Docs: align partial reloads examples
inertiajs/inertiajs.com#371
1 parent 9d38e5b commit 3b64799

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/guide/manual-visits.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -710,23 +710,23 @@ The `only` option allows you to request a subset of the props (data) from the se
710710
```js
711711
import { router } from '@inertiajs/vue3'
712712

713-
router.visit('/users', { data: { search: 'John' }, only: ['users'] })
713+
router.get('/users', { search: 'John' }, { only: ['users'] })
714714
```
715715

716716
== React
717717

718718
```js
719719
import { router } from '@inertiajs/react'
720720

721-
router.visit('/users', { data: { search: 'John' }, only: ['users'] })
721+
router.get('/users', { search: 'John' }, { only: ['users'] })
722722
```
723723

724724
== Svelte 4|Svelte 5
725725

726726
```js
727727
import { router } from '@inertiajs/svelte'
728728

729-
router.visit('/users', { data: { search: 'John' }, only: ['users'] })
729+
router.get('/users', { search: 'John' }, { only: ['users'] })
730730
```
731731

732732
:::

0 commit comments

Comments
 (0)