무한스크롤 구현
: 마지막 요소가 보이면 alarm api를 호출하니까, 쓰기 불편하더라구요. (데이터 로드해오는 시간에 의해 끊김 -> 무한스크롤의 장점을 활용하지 못하는 느낌?) 그래서 영인님처럼 마지막에서 4번째 전 요소가 api 트리거 할 수 있도록 구현해뒀습니다.
주요 변경 로직
useOnView
: useEffect의 ref -> ref.current로 바꿨습니다
이유 ref.current가 바껴도 ref의 주소값은 동일하기때문에 useEffect가 실행되지 않는 케이스가 생겨 바꾸게 되었습니다.
참고
팔로잉 모달은 아직 미완성인데, pr이 너무 커질 거 같아서 쪼개서 보냅니다! => 팔로잉 모달까지 완료 ! (10.03)
개요
유저에게 온 알람을 보여줌
작업사항
주요 변경 로직
이유
ref.current가 바껴도 ref의 주소값은 동일하기때문에 useEffect가 실행되지 않는 케이스가 생겨 바꾸게 되었습니다.참고
팔로잉 모달은 아직 미완성인데, pr이 너무 커질 거 같아서 쪼개서 보냅니다! => 팔로잉 모달까지 완료 ! (10.03)