Help Needed with cursorPaginate in Filament Tables with Tabs and Filters
Hi everyone,
I’m implementing cursorPaginate to improve the performance of a large dataset in my Filament Table. However, I’m facing issues when combining it with table Tabs and filters, as shown in the attached screenshot.
Here’s the scenario:
-> I’m using multiple Tabs (e.g., "New", "Enabled", etc.) to filter the data.
-> When I’m on the "New" Tab and click the "Next" pagination button, everything works fine.
-> However, if I switch to the "Enabled" Tab while on a paginated view, both "Previous" and "Next" buttons are displayed (even if only "Next" should appear based on the available data).
-> Additionally, when I click the "Previous" button in this scenario, I get a null error for the pagination.
I suspect this issue arises due to the way cursor pagination interacts with the Tabs and filters, but I’m not sure how to resolve it.
Does anyone have suggestions or a workaround to make cursorPaginate work seamlessly with Tabs and ensure proper pagination behavior? Any help would be greatly appreciated!
Thanks in advance!
![No description](https://cdn.answeroverflow.com/1332250866891358312/image.png)
![No description](https://cdn.answeroverflow.com/1332250867189026857/image.png)
![No description](https://cdn.answeroverflow.com/1332250867465982032/image.png)
2 Replies
The code file, Please refer for the same.