You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to create an editable list (with name and year of people) with pagination and stats about all this list (like number of people who have more than 18) . I have a controller that return my list, data about pagination (index, page) and statistics about this list.
When I paginate listing, everything works fine. The list is updated with next page and stats are not updated (because data didn't change)
Case 1 :
I would like to update year of a people in the list. When I update this data with a POST request, the redirect to the index page lost data from pagination (stored in url as query). Stat data is updated (not like Case 2).
In this case, query params for pagination in the url disappear
Case 2 :
When I update year of people with POST request the pagination is kept but the deferred data is not updated.
In the network of browser, deferred props are not returned in props object. Only the name of deferred data is visible.
Versions:
@inertiajs/vue3
version: 2.0.0-beta.1inertiajs/inertia-laravel
version: 2.x-devDescribe the problem:
I'm using Vue3, Laravel11 and Inertia v2 beta.
I want to create an editable list (with name and year of people) with pagination and stats about all this list (like number of people who have more than 18) . I have a controller that return my list, data about pagination (index, page) and statistics about this list.
When I paginate listing, everything works fine. The list is updated with next page and stats are not updated (because data didn't change)
Case 1 :
I would like to update year of a people in the list. When I update this data with a POST request, the redirect to the index page lost data from pagination (stored in url as query). Stat data is updated (not like Case 2).
In this case, query params for pagination in the url disappear
Case 2 :
When I update year of people with POST request the pagination is kept but the deferred data is not updated.
In the network of browser, deferred props are not returned in props object. Only the name of deferred data is visible.
In Vue, the component Deferred display only #fallback template.
In the example, I've used
Redirect::back()
Do you have any solution ?
Steps to reproduce:
create a controller :
create another controller to update year of one people
In Vue3 :
The text was updated successfully, but these errors were encountered: