Skip to content

Commit 7304a88

Browse files
committed
#119 [ADD] 함수 주석 추가
1 parent 9461275 commit 7304a88

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/pages/goal/GoalHome.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,11 @@ const GoalHome = () => {
5555
[filter]
5656
);
5757

58+
// 데이터 불러오기
5859
const { data, isFetchingNextPage, isLoading, isError, hasNextPage, fetchNextPage } =
5960
useGetInfiniteGoalList(teamId ?? '', params);
6061

62+
// 그룹화
6163
const goalGroups = data?.pages ?? [];
6264
const allGoalsFlat = goalGroups.flatMap((g) => g.goals);
6365

@@ -71,6 +73,7 @@ const GoalHome = () => {
7173
const sortedGrouped = getSortedGrouped(filter, grouped);
7274
const isEmpty = grouped.every(({ items }) => items.length === 0);
7375

76+
// 무한스크롤 fetching
7477
const { ref, inView } = useInView({
7578
threshold: 0,
7679
});
@@ -81,6 +84,7 @@ const GoalHome = () => {
8184
}
8285
}, [inView, isFetchingNextPage, hasNextPage, fetchNextPage]);
8386

87+
// 삭제 관련 상태 및 함수
8488
const {
8589
checkedIds: checkItems,
8690
isAllChecked,

src/pages/issue/IssueHome.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@ const IssueHome = () => {
5757
[filter]
5858
);
5959

60+
// 데이터 불러오기
6061
const { data, isFetchingNextPage, isLoading, isError, hasNextPage, fetchNextPage } =
6162
useGetInfiniteIssueList(teamId ?? '', params);
6263

64+
// 그룹화
6365
const issueGroups = data?.pages ?? [];
6466
const allIssuesFlat = issueGroups.flatMap((i) => i.issues);
6567

@@ -73,6 +75,7 @@ const IssueHome = () => {
7375
const sortedGrouped = getSortedGrouped(filter, grouped);
7476
const isEmpty = grouped.every(({ items }) => items.length === 0);
7577

78+
// 무한스크롤 fetching
7679
const { ref, inView } = useInView({
7780
threshold: 0,
7881
});
@@ -83,6 +86,7 @@ const IssueHome = () => {
8386
}
8487
}, [inView, isFetchingNextPage, hasNextPage, fetchNextPage]);
8588

89+
// 삭제 관련 상태 및 함수
8690
const {
8791
checkedIds: checkItems,
8892
isAllChecked,

0 commit comments

Comments
 (0)