Reactjs – Function running 3-150 times instead of 1 time, downstream of useEffect, getData (fetch), and myDataArray.map in NextJS 13.4+ app router
This function convertToUpperCase(item.name) runs 3-150 times. You can see it in context below. In my test db, I have only 1 row of data in my db that I am returning so I am expecting it to run only 1…