I have edit/delete functionality for records. when I come on actual page, it displays all data but when I actually edit/delete. Only first entry from cloudant is displayed. But if I again click on edit/delete functionality it displays all data. Must be issue with react state.
Adding details about my implementation. state: state in useEffect I used Carbon components DataTable for rendering countryDetList data. After edit/delete and Modal closing, only 1st record is displayed.