Skip to content

Commit e07bbc1

Browse files
committed
Merge remote-tracking branch 'origin/dev' into style/mainPage-2#122
2 parents d2645a8 + f071906 commit e07bbc1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/domains/recipe/components/main/Cocktails.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ function Cocktails() {
4444
: `전체 ${data.length}`;
4545

4646
// 초기 로드 시 검색어가 있으면 검색 실행
47-
useEffect(() => {
48-
const readyForFirstLoad = !isSearching && hasNextPage && lastId == null && data.length === 0;
47+
// useEffect(() => {
48+
// const readyForFirstLoad = !isSearching && hasNextPage && lastId == null && data.length === 0;
4949

50-
if (readyForFirstLoad) {
51-
fetchData();
52-
}
53-
}, [hasNextPage, lastId]);
50+
// if (readyForFirstLoad) {
51+
// fetchData();
52+
// }
53+
// }, [hasNextPage, lastId]);
5454

5555
// 검색어 변경 시
5656
useEffect(() => {
159 KB
Loading

0 commit comments

Comments
 (0)