Skip to content

Commit

Permalink
Hotfix: change root margin for observer
Browse files Browse the repository at this point in the history
  • Loading branch information
NamgungJongMin committed Jan 26, 2024
1 parent 0cccbdc commit 20b3212
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/useInfiniteScroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export const useInfiniteScroll = (infiniteQueryFn: () => UseInfiniteQueryResult<
const {data, fetchNextPage} = infiniteQueryFn();
const [hasNextData, setHasNextData] = useState(true);
const {ref: inViewRef, inView} = useInView({
rootMargin: '-40px',
threshold: 0.8,
rootMargin: '0px 0px -56px 0px',
threshold: 1,
});

useEffect(() => {
Expand Down

0 comments on commit 20b3212

Please sign in to comment.