Replies: 3 comments 1 reply
|
I believe you need to memoize the data like this So you won't get the maximum update depth error |
0 replies
|
I tried wrapping my code inside useMemo, as well as useEffect, but everytime I am getting error as My code as I am calling the api from parent component and then passing it to child component(BookingTable). |
1 reply
|
Hi, I am trying pagination as follows, i am using free NASA api as accepts pagination App.js Table.js as below } export default Table; My pageCount is not changing, its coming 1, and Table.js is getting called multiple times (like 8). Also Please help.... |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I am trying to implement pagination in react-table and below is my code
export default BookingTable;
I am getting data from the api, and the data is complete i.e. api returns 30 records, but i want only 10(or any other number) records per page
While running the code, I am getting error as follows:
Error: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate.
Please help.
All reactions