-
Notifications
You must be signed in to change notification settings - Fork 17
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
[이동혁] sprint8 #123
The head ref may contain hidden characters: "next-\uC774\uB3D9\uD601-sprint08"
[이동혁] sprint8 #123
Conversation
totalSize: number; | ||
} | ||
|
||
export const getServerSideProps = (async (context) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
게시물 목록 페이지의 경우, 동적으로 내용이 자주 변하고 검색엔진노출이 중요하지 않은 경우가 많습니다. 이 경우에는 getServerSideProps 가 실행되는동안 UI를 blocking 하는 SSR 방식보다는 정적인 UI 먼저 보여주고 api 를 통한 동적인 UI는 조금 후에 보여주는 CSR 방식이 UX 측면에서 더 좋은 선택일 수 있습니다.
); | ||
})} | ||
</div> | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 코멘트를 기점으로 위의 베스트 게시글 UI 파트와 아래의 일반 게시글 UI 파트는 별도의 컴포넌트로 분리부터 해주시는 것을 권장 드립니다. 페이지 컴포넌트 내에서 관리하는 상태들이 많고 상태 변경 관련 비즈니스 로직들이 UI과 엮여서 복잡해 보입니다. 가장 먼저 컴포넌트 분리부터 하시고, 분리가 끝나면 각 컴포넌트 안에 있는 useState 과 useEffect 와 같은 상태 및 비즈니스로직들을 커스텀훅으로 분리해내는 것까지 해보시면 아주 좋을 것 같습니다.
동혁님 스프린트 작업하시느라 고생많으셨습니다! 타입스크립트까지 사용하면서 대부분의 요구사항들을 잘 만족하면서 작업하셨네요.
|
요구사항
기본
심화