Skip to content

Commit

Permalink
[Refactor] 쿼리 키 변경 시 쿼리 초기화 #1203
Browse files Browse the repository at this point in the history
  • Loading branch information
Clearsu committed Jan 4, 2024
1 parent 3b94dc8 commit 4a3e795
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/infinityScroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ export function InfiniteScroll<T extends PagenatedResponse>(
}
},
retry: 0,
keepPreviousData: true,
// 쿼리 키 변경 시 쿼리를 초기화하여 isLoading 업데이트
// keepPreviousData: true,
}
);
}

0 comments on commit 4a3e795

Please sign in to comment.