Why does using an object as a useEffect dependency cause infinite loops, and how do you fix it? · ORA·tech