Ok, I get it. A useEffect
is calling a setState
that triggers the same useEffect
again, creating an infinite loop.
My question is: What is the best way to debug this situation? Is there a way to track which specific properties or state variables were the ones that triggered a useEffect
callback?