Skip to content

Commit 6a7f671

Browse files
committed
Coment: 주석 추가
1 parent ca1d189 commit 6a7f671

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/pages/Home/OOTD/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ const OOTD: React.FC = () => {
2929
// 전체 게시글(피드) 조회 API
3030
const getPostList = async () => {
3131
if (reachedEnd || isFetching) return;
32+
// 사용자가 스크롤을 빠르게 내리거나 ntersection Observer가 여러 번 트리거될 경우, 중복된 API 요청 발생 가능.
33+
// 이를 막기 위해 isFetching 상태를 확인하고, 현재 요청 중인 상태라면 추가 요청을 막음
3234

3335
setIsFetching(true);
3436
try {

0 commit comments

Comments
 (0)