I am using ReactTable component from react-table to display paginated data returned from my backend.
the backend returns an object as follows:
{count: (total items count), results: [items], pages_count:(number of pages), page:(current page) }
I want to set the total page count in ReactTable as the total page count returned by the backend and not as the length of the array of data. (rows returned by the backend corresponds only to the actual page). I tried to override the getPaginationProps prop, but I really did not find out how to do it correctly since I am new to react. Am I on the correct path ? and how can I do it ? Thank you