title: React useEffect gives react-hooks/exhaustive-deps error on publishing
body: <p>My .net core react web application works fine, except that when I try to publish it gives me the following error:</p>
  <pre><code>Occurred while linting C:\.....Fetch.js: 79
  Rule: &quot;react-hooks/exhaustive-deps&quot;
  </code></pre>
  <p>This is my code:</p>
  <pre><code>const populateTable1Data = async () =&gt; {
  
      var response = await axios.get(apiurl + { params: { id: props.id1 } });
      var data = await response.data;
  
      setTable1Data(data);
  }
  
  const populateTable2Data = async () =&gt; {
  
      var response = await axios.get(apiurl + { params: { id: props.id2 } });
      var data = await response.data;
  
      setTable2Data(data);
      setLoading(false);
  }
  
  useEffect(() =&gt; {
  
      const load = async () =&gt; {
          await populateTable1Data();
          await populateTable2Data();
  
          setLoading(false)
      }
  
      load()
  }, []);
  </code></pre>
  <p>Problem is that I have a very similar useEffect inside another component which doesn't give errors though:</p>
  <pre><code>const populateTableData = async () =&gt; {
  
      const response = await axios.get(apiurl + key);
      const data = await response.data;
  
      setTableData(data);
      setLoading(false);
  }
  
  useEffect(() =&gt; {
      populateTableData();
  }, [])
  </code></pre>