react-table-library
react-table-library copied to clipboard
fix(types/pagination)
Added the declarations for the functions to the "state and getters" object in the following lines
// src/pagination/usePagination.ts
const stateAndGetters = {
...state,
getTotalPages,
getPages,
getPageBoundaries,
};
So that you can get full type support when doing pagination.state.getPages(data.nodes).map(...).
When using the sort feature I have this error.
Any one have the same problem Thank you
@GOussama I'm not a project contributor, I just added a suggested change to fix a type issue I was having. Did your error happen after applying the suggested change? If not, then I don't think this is relevant to this PR and you should instead address the product owners.