title: react-hooks/exhaustive-deps warning
body: <p>I use react hook <strong>useEffect</strong> like the following code for fetching data and changing state in it. For avoiding the infinite loop I add an empty array as the second parameter of the useEffect and I get this warning. Do I just ignore it or I have to fix it? If so, how can fix it? I just want the componentDidMount effect here.
  I appreciate any idea?</p>
  
  <pre><code>useEffect(() =&gt; {
   fetch('/login')
   .then(response =&gt; {
     if (response.ok) fetchAll() 
     else setLoading({ ...loading, signin: true, progress:false });     
   }).catch(() =&gt;{
     setLoading({ ...loading, signin: true, progress:false });
   })
  },[]);
  </code></pre>