Why does useEffect cause infinite loops and how do you fix it? · ORA·tech