File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -710,23 +710,23 @@ The `only` option allows you to request a subset of the props (data) from the se
710
710
``` js
711
711
import { router } from ' @inertiajs/vue3'
712
712
713
- router .visit (' /users' , { data : { search: ' John' }, only: [' users' ] })
713
+ router .get (' /users' , { search: ' John' }, { only: [' users' ] })
714
714
```
715
715
716
716
== React
717
717
718
718
``` js
719
719
import { router } from ' @inertiajs/react'
720
720
721
- router .visit (' /users' , { data : { search: ' John' }, only: [' users' ] })
721
+ router .get (' /users' , { search: ' John' }, { only: [' users' ] })
722
722
```
723
723
724
724
== Svelte 4|Svelte 5
725
725
726
726
``` js
727
727
import { router } from ' @inertiajs/svelte'
728
728
729
- router .visit (' /users' , { data : { search: ' John' }, only: [' users' ] })
729
+ router .get (' /users' , { search: ' John' }, { only: [' users' ] })
730
730
```
731
731
732
732
:::
You can’t perform that action at this time.
0 commit comments