title: I don't know why I'm getting a useEffect infinite loop
body: <pre><code> const handleLike = async () =&gt; {
      await likeTweet(tweet._id, user._id);
    };
  
    useEffect(() =&gt; {
      const fetch = async () =&gt; {
        const response = await fetchLikes(tweet._id);
        setTweetLikes(response.data);
        console.log(&quot;useEffect&quot;);
      };
      fetch();
    }, [handleLike]);
  </code></pre>
  <p>I'm just declaring the dependencies function, not excecuting it. I don't know why it's remounting the component</p>