useEffect and infinite loop
…