Skip to content

Conversation

@namgungseok12
Copy link

✏️ 작업 내용

#️⃣ 연관된 이슈

#20


📷 작업 결과

작업 결과 사진을 업로드해주세요.


💡 함께 공유하고 싶은 부분

해당 주차를 공부하면서 함께 이야기하고 싶은 주제를 남겨주세요.

(어려웠던 부분과 해결 과정, 핵심 코드, 참고한 자료 등)


🤔 질문

해당 주차 워크북을 공부하면서 궁금했던 질문들을 남겨주세요.


✅ 워크북 체크리스트

  • 모든 핵심 키워드 정리를 마쳤나요?
  • 핵심 키워드에 대해 완벽히 이해하였나요?
  • 실습/미션을 수행하였나요?

✅ 컨벤션 체크리스트

  • pr 제목을 컨벤션에 맞게 작성하였나요?
  • pr에 해당되는 이슈를 연결하였나요?
  • 적절한 라벨을 설정하였나요?
  • 코드리뷰를 요청하기 위해 reviewer를 등록하였나요?
  • 닉네임/main 브랜치의 최신 상태를 반영하고 있나요?

Copy link
Contributor

@duwlsssss duwlsssss left a comment

Choose a reason for hiding this comment

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

고생했습니당 👏

@@ -0,0 +1 @@
VITE_TMDB_KEY=eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJlNjQzNjUzNTUyY2E5NjIxZGYxMDgwMjk3ODcwMTQ0MiIsIm5iZiI6MTc0MzY4NjE2Ny4zNjYwMDAyLCJzdWIiOiI2N2VlOGExNzU0ZjU5NWJiNTVhN2I3YWYiLCJzY29wZXMiOlsiYXBpX3JlYWQiXSwidmVyc2lvbiI6MX0.KEBQKM1JXCfZKAo7DIf9iLBUKJ3e4GAebLJNsPSaMVY No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

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

.env .gitignore에 추가해서 force push 필요할 듯...

Comment on lines +13 to +41
// const [movie,setMovie] = useState<MovieDetailResponse>()
// const [isPending,setIsPending] = useState(false) // loading state
// const [isError,setIsError] = useState(false) // error state


// useEffect(() => {
// const fetchMovies = async () => {
// setIsPending(true)

// try{
// const {data} = await axios.get<MovieDetailResponse>(
// ``,
// {
// headers: {
// Authorization: `Bearer ${import.meta.env.VITE_TMDB_KEY}`,
// }
// },
// );

// setMovie(data);
// }catch{
// setIsError(true);
// }finally{
// setIsPending(false);
// }
// };

// fetchMovies();
// }, [params.movieId]);
Copy link
Contributor

Choose a reason for hiding this comment

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

여기 왜 주석인가여...

Copy link
Author

Choose a reason for hiding this comment

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

hooks 가 익숙하지 않기 때문에...!


const MovieDetailPage =() => {

const params:Readonly<Params<string>> = useParams()
Copy link
Contributor

Choose a reason for hiding this comment

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

useParams로 가져온 값은 어차피 직접 수정하지 않고, Params도 굳이 쓸 필요 없어 보여서
const { movieId } = useParams<{ movieId: string }>();
이렇게 간단히 타입 정의할 수 있어용

Copy link

@qowldud qowldud left a comment

Choose a reason for hiding this comment

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

수고하셨습니다!!

Choose a reason for hiding this comment

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

고생하셨습니다~!

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.

5 participants