diff --git a/app/rank/page.tsx b/app/rank/page.tsx index 51d9485..642ccd2 100644 --- a/app/rank/page.tsx +++ b/app/rank/page.tsx @@ -46,7 +46,7 @@ export default function Rank() {
- {!isFetchingNextPage &&
} + {!isFetchingNextPage && } scrollTo({ left: 0, top: 0, behavior: 'smooth' })}> @@ -72,3 +72,7 @@ const ScrollToTopButton = styled.button` ); box-shadow: 0px 4px 10px 0px rgba(18, 18, 18, 0.15); `; + +const InfiniteFetchDiv = styled.div` + height: 5px; +`; diff --git a/libs/apis/rank.ts b/libs/apis/rank.ts index d0277a6..da3bcc8 100644 --- a/libs/apis/rank.ts +++ b/libs/apis/rank.ts @@ -27,6 +27,7 @@ export const useGetRankInfiniteScroll = (pageSize: number, queryKey: string) => queryFn: fetchRank, initialPageParam: '' as string, getNextPageParam: ({ meta: { hasNextData, nextCursor } }) => (hasNextData ? nextCursor : undefined), + retry: 1, }); return {