Skip to content
Snippets Groups Projects
Commit 29da67d6 authored by 석찬 윤's avatar 석찬 윤
Browse files

fix: 마이페이지 API무한호출 의존성 배열 수정

parent 1863b0d5
Branches
No related tags found
1 merge request!39[refactor] 웹소켓 연결 경로 env 처리
...@@ -90,7 +90,7 @@ const MyPage = () => { ...@@ -90,7 +90,7 @@ const MyPage = () => {
} }
}; };
if (activeTab === "friends") fetchSentRequests(); if (activeTab === "friends") fetchSentRequests();
}, [activeTab, sentRequests]); }, [activeTab]);
// 받은 친구 요청 조회 // 받은 친구 요청 조회
useEffect(() => { useEffect(() => {
...@@ -104,7 +104,7 @@ const MyPage = () => { ...@@ -104,7 +104,7 @@ const MyPage = () => {
} }
}; };
if (activeTab === "friends") fetchReceivedRequests(); if (activeTab === "friends") fetchReceivedRequests();
}, [activeTab, receivedRequests]); }, [activeTab]);
// 친구 목록 무한스크롤 처리 // 친구 목록 무한스크롤 처리
useEffect(() => { useEffect(() => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment