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
When using api resources as a response it behaves like it did in version 1 no merging strategy is made here it just returns the second page instead of merging the data property.
On the UI side i'm using a function to get the next results.
const { data, meta, links } = posts;
function loadNext() {
if (links.next) {
router.get(links.next);
}
}
Your code doesn't seem to take standard laravel pagination responses into account. Maybe if there was a way to define a merging strategy that would be great so it can accommodate various different responses?
Version:
@inertiajs/react
version: 2.0.0-beta.2Describe the problem:
When using api resources as a response it behaves like it did in version 1 no merging strategy is made here it just returns the second page instead of merging the
data
property.On the UI side i'm using a function to get the next results.
Your code doesn't seem to take standard laravel pagination responses into account. Maybe if there was a way to define a merging strategy that would be great so it can accommodate various different responses?
The text was updated successfully, but these errors were encountered: