AllenFang / react-bootstrap-table

A Bootstrap table built with React.js
https://allenfang.github.io/react-bootstrap-table/
MIT License
2.24k stars 783 forks source link

expandComponent is going in infinite loop #2099

Open Siri15 opened 4 years ago

Siri15 commented 4 years ago

I have two api calls one for fetching the list of records. second api call is when I expandComponent for each record. I am using the react-bootstrap-table and expandComponent. When I click on expand symbol, its going infinite loop and the values of the expanded component is changing based on the row.id for all the records fetched in the first api call. Need help in loading the expand component when I expand on a row and the api call should go for the record expanded.