-
Notifications
You must be signed in to change notification settings - Fork 0
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
구현 - 현재 상영중인 영화 목록 추가 #26
Conversation
Quality Gate passedIssues Measures |
@@ -9,6 +9,7 @@ import { MovieListReqParams } from "./request-types"; | |||
export const movieListQueryKeys = { | |||
popularMovieList: () => ["popular-movie-list"] as const, | |||
upcomingMovieList: () => ["upcoming-movie-list"] as const, | |||
nowPlayingMovieList: () => ["now-playing-movie-list"] as const, | |||
}; |
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.
아래 팩토리 함수를 구현해서 all을 무조건 받을 수 있도록 만들어보시면 좋을 것 같습니다.
makeKeysFactory('movie-list', {
popularMovieList: () => ["popular-movie-list"] as const,
upcomingMovieList: () => ["upcoming-movie-list"] as const,
nowPlayingMovieList: () => ["now-playing-movie-list"] as const,
})
return this.movieList.results.filter(({ adult }) => !adult).map((item) => new MovieListItem(item)); | ||
return this.movieList.results | ||
.filter(({ adult }) => !adult) | ||
.map((item) => new MovieListItem(item, this.genresModel)); | ||
} |
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.
MovieListItem을 위해 genresModel을 넣어주는게 싫다면 외부에서 주입하는 것도 방법일 것 같습니다.
new MovieList().setXxx().setXxx().build()
PR 타입
연관 이슈
resolve #24
개요
상영중인 영화 목록 리스트 추가
변경 사항
리뷰시 참고할 사항