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 |
Beta Was this translation helpful? Give feedback.
-
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). |
Beta Was this translation helpful? Give feedback.
-
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.... |
Beta Was this translation helpful? Give feedback.
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.
Beta Was this translation helpful? Give feedback.
All reactions