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

fix: useEffect dependency 오류 수정 (#11)

parent dbd016bc
No related branches found
No related tags found
1 merge request!19[#11] 마이페이지 개발
Pipeline #10904 passed
......@@ -50,7 +50,7 @@ const MyPage = () => {
};
fetchUserSession();
}, [fetchSession]); // 페이지 마운트 시 실행
}, [fetchSession, navigate]); // 페이지 마운트 시 실행
// 번개 모임 가져오기
useEffect(() => {
......@@ -71,7 +71,7 @@ const MyPage = () => {
};
if (activeTab === "lightning") fetchMeetings();
}, [activeTab, page, hasNext]);
}, [activeTab, meetingPage, meetingHasNext, meetingIsLoading]);
// 받은 친구 요청 조회
useEffect(() => {
......@@ -103,7 +103,7 @@ const MyPage = () => {
}
};
if (activeTab === "friends") fetchFriends();
}, [page, hasNext, activeTab]);
}, [page, hasNext, activeTab, isLoading]);
// 친구 요청 보내기
const handleSendRequest = async () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment