We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca1d189 commit 6a7f671Copy full SHA for 6a7f671
1 file changed
src/pages/Home/OOTD/index.tsx
@@ -29,6 +29,8 @@ const OOTD: React.FC = () => {
29
// 전체 게시글(피드) 조회 API
30
const getPostList = async () => {
31
if (reachedEnd || isFetching) return;
32
+ // 사용자가 스크롤을 빠르게 내리거나 ntersection Observer가 여러 번 트리거될 경우, 중복된 API 요청 발생 가능.
33
+ // 이를 막기 위해 isFetching 상태를 확인하고, 현재 요청 중인 상태라면 추가 요청을 막음
34
35
setIsFetching(true);
36
try {
0 commit comments