getPageCount doesn't return the correct number on the initial load when using manual pagination
Hi, I have a Vue DataTable component that I want to be configured to fit both server & client cases using manual pagination.
Everything is good; however, there is an issue with the initial load when the data is empty at first, and the table renders 0 pages. However, when data is fetched, the data is updated, but the total page is not updated.
I am using a trick with
isMounted
ref like this to prevent rendering the table before data is fetched from the server.
However, I still think there is something wrong in my code that prevents the Tanstack table get the correct page count internally. This is my code


0 Replies