Show more than one paginated data object in inertiaJS with React
Is there a way to show more than one paginated table in inertia? Inertia provides a { data } object, and apparently, you can only have one per page. How can I show another table with backend pagination on the same page? I am working with tabs and I need to display a table per tab on the same page.
@Sinnbeck I saw that example code. But, my challenge is I have two models I would like to display. I noticed that everytime I use the code structure below, my data is displayed correctly.
const {users} = usePage().props
const {data} = users // <--- this will work
const {usersData} = users // <--- this does not work
When I map() through data the data is displayed correctly and I can access anything about it. However, when I change the destructuring object to another name, it doesn't work.