title: "The final argument passed to useEffect changed size between renders", except I don't think it does?
body: <p>I don't think I've ever received this error before:</p>
  <blockquote>
  <p>The final argument passed to useEffect changed size between renders. The order and size of this array must remain constant.</p>
  </blockquote>
  <p>I've done axios requests in <code>useEffect()</code> 100 times, using <code>useEffect()</code> in a similar manner to <code>componentDidMount()</code>, but this is the first time that I've used a reusable function with <code>async</code>/<code>await</code>, and resolved the data back to the <code>useEffect()</code>. Other people online are doing this exact same thing in their tutorials, but they never mentioned this error.</p>
  <pre><code>const [tableData, setTableData] = useState([])
      useEffect(() =&gt; {
          const data = async() =&gt; {
              const dataArr = await getPagList('tags', 1, 25)
              console.log(&quot;Data received: &quot;, dataArr)
              if(dataArr.length &gt; 0) {
                  setTableData(dataArr)
              }
          }
          data()
      }, [])
  </code></pre>
  <p>I believe, it's complaining about the empty array I'm feeding <code>useEffect()</code> as the 2nd parameter. However, that empty array isn't changing... Right? I tried googling it, but the solutions I found for this error were what I'm already doing. None of the examples were using <code>async</code>/<code>await</code>.</p>
  <p>I have also tried this, with no success:</p>
  <pre><code>    useEffect(() =&gt; {
          setData()
      }, [])
  
      const setData = () =&gt; {
          const data = async() =&gt; {
              const dataArr = await getPagList('tags', 1, 25)
              console.log(&quot;Data received: &quot;, dataArr)
              if(dataArr.length &gt; 0) {
                  setTableData(dataArr)
              }
              // TODO Properly handle this data now that I'm getting it in. It's only 9 records though.
          }
          data()
      }
  </code></pre>
  <p>Am I not exiting the useEffect properly or something?
  Anyway, thanks guys.</p>