From 1863b0d57177875f50ea41d38584c356e42f9e5f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=EC=84=9D=EC=B0=AC=20=EC=9C=A4?= <ysc0731@ajou.ac.kr>
Date: Mon, 9 Dec 2024 14:07:19 +0900
Subject: [PATCH] =?UTF-8?q?feat:=20=EB=A7=88=EC=9D=B4=ED=8E=98=EC=9D=B4?=
 =?UTF-8?q?=EC=A7=80=20=EC=9D=98=EC=A1=B4=EC=84=B1=20=EB=B0=B0=EC=97=B4=20?=
 =?UTF-8?q?=EC=88=98=EC=A0=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/pages/Mypage.jsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/pages/Mypage.jsx b/src/pages/Mypage.jsx
index 8571e27..6a3b1d0 100644
--- a/src/pages/Mypage.jsx
+++ b/src/pages/Mypage.jsx
@@ -90,7 +90,7 @@ const MyPage = () => {
       }
     };
     if (activeTab === "friends") fetchSentRequests();
-  }, [activeTab]);
+  }, [activeTab, sentRequests]);
 
   // 받은 친구 요청 조회
   useEffect(() => {
@@ -104,7 +104,7 @@ const MyPage = () => {
       }
     };
     if (activeTab === "friends") fetchReceivedRequests();
-  }, [activeTab]);
+  }, [activeTab, receivedRequests]);
 
   // 친구 목록 무한스크롤 처리
   useEffect(() => {
@@ -133,7 +133,7 @@ const MyPage = () => {
 
     if (activeTab === "friends") fetchFriends();
     // eslint-disable-next-line react-hooks/exhaustive-deps
-  }, [page, hasNext, activeTab, isLoading]);
+  }, [page, hasNext, activeTab, isLoading, friends]);
 
   // 친구 요청 보내기
   const handleSendRequest = async () => {
-- 
GitLab