Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/postlist 무한스크롤 기능 보류 #74

Merged
merged 5 commits into from
Mar 9, 2021
Merged

Conversation

Seogeurim
Copy link
Member

원래는 무한스크롤을 구현하고 PR을 올려야 하는데, 무한스크롤은 맨 마지막으로 미룰까 합니다.
외부 라이브러리도 써보고 했는데 아무래도 직접 짜야할 것 같고, 시간이 좀 걸릴 것 같습니다.
다른 급한 기능 마무리하고 다같이 덤벼봅시다 !!

관련 이슈

#66

변경 사항

  1. BoxLoader가 추가되었습니다.
  2. MainPage를 class -> functional component로 바꾸었습니다.
  3. 무한스크롤 관련해서 자꾸 에러가 나서 불편했죠 ? 일단 없앴습니다.

PR Point

간단히 테스트만 부탁드립니다 !!

Reference

Copy link
Member

@KimKwon KimKwon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

박스로더 아주 마음에 듭니다 👍 👍

if (!token) {
this.fetchMainPosts(0);
await dispatch(getMainPosts(0, mainPageNum));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

31번, 34번 라인 혹시 vscode에서 이 경고 안 뜨시나요
'await' has no effect on the type of this expression.ts(80007)

분명 await 붙고 안 붙고에 따라 로더가 포스트 렌더링 전까지 돌고 안돌고의 차이가 존재하는데
정말 신기합니다. 그렇다구요,,,, 👍

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

안 그래도 functional component -> useDispatch로 바꾸고 나서 자꾸 워닝 떠서 거슬려 미치겠습니다 !! vscode 설정에서 바꿀 수 있으면 바꾸든지 해야지 원 ...!!!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

나원...참! ! !

Copy link
Member

@kimdg1105 kimdg1105 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

박스 로더 이뻐요 👍

@Seogeurim Seogeurim merged commit 345f884 into master Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants