title: React Hook useEffect has missing dependencies. Either include them or remove the dependency array
body: <p>I'm making a React App and I'm getting this warning. I'm trying to make two API calls when the component mounts:</p>
  
  <pre><code>useEffect(() =&gt; {
    getWebsites();
    loadUserRatings();
  }, []);
  </code></pre>
  
  <p>That's why I have an empty array, because I want to call it just once when the component gets mounted. But I'm still getting the warning, how can I fix it?</p>
  
  <p>Those two functions are passed to the component using connect from react redux, the whole component looks like this:</p>
  
  <pre><code>const Wrapper = (props) =&gt; {
    const { getWebsites, loadUserRatings } = props;
  
    useEffect(() =&gt; {
      getWebsites();
      loadUserRatings();
    }, []);
  
    return (
      &lt;&gt;
        &lt;Header /&gt;
        &lt;Websites /&gt;
        &lt;Sync /&gt;
      &lt;/&gt;
    );
  };
  </code></pre>