Pretty sure they are more or less the same except you define the url with get(). Maybe show what you have and which part isn't working?
Jul 10, 2022
5
Level 63
Inertia::reload or this.$inertia.get to filter datas ?
Hello,
I discover InertiaJS and I have read the documentation about partial reload and HTTP queries.*
I can click on checkboxes to filter the datas and I want to retrieve the filtered data from the database via a GET route.
I thought that Inertia.reload was appropriated, but I have difficulty to send some filter. I can also refill the students props with this.$inertia.get() but then I think that it reloads the entire page.
What's the best way to do what I need ? Do you have an example ?
Thanks a lot ;).
Vincent
Level 102
@vincent15000 try nesting it in data:
Inertia.reload({ data: { filters: this.filters} })
2 likes
Please or to participate in this conversation.