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
710710``` js
711711import { 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
719719import { 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
727727import { 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:::
You can’t perform that action at this time.
0 commit comments