it seems like the useEffect is causing a infinite loop, to be more precise its setComments which cause it… i tried commenting out setComments and console logging the response i get from firebase and it only logs it once, so im pretty sure its the setComments thats causing it and i cant seem to find out why..any help will be much appreciated
I wouldve posted this on r/reactjs but it dosent allow images