With React 16.8.6 (it was good on previous version 16.8.3), I get this error when I attempt to prevent an infinite loop on a fetch request
./src/components/Bu
Just pass the function as the argument in the array of useEffect...
useEffect(() => { functionName() }, [functionName])