Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Feature
Closes #32
Description
tweets API 에서 무한 스크롤링이 가능한 페이지단위로 반환
메인페이지에서 트윗리스트를 무한 스크롤로 렌더하는 것으로 변경
하지만, scrolltop(스크롤 높이)과 offsetHeight(전체문서 높이) 를 참조하는 방식은 리플로우를 다시 일으켜서 참조값을 업데이트 할 수 도있다.
throttle을 사용하여 스크롤이 발생할 때, 일정 시간마다 스크롤 이벤트를 일으키는 것으로 최적화가 가능하다.
무한 스크롤로 렌더되는 tweet들의 좋아요 낙관적 업데이트를 적용
레퍼런스