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

[FIX] Context api 사용하여 사용자 정보 저장 및 호출 #89

Merged
merged 1 commit into from
Jan 23, 2023

Conversation

hyowonii
Copy link
Contributor

@hyowonii hyowonii commented Jan 23, 2023

feature/login -> main✨ (#67 )

구현 내용✏

  • React Context api 사용하여 사용자 로그인 정보(아이디, 닉네임, 프로필 이미지) 전역 저장
  • 헤더 프로필 이미지: 헤더가 로드될 때마다 백엔드에 요청을 보낸 후 응답을 받아오는 것이 아닌 UserContext를 사용하여 profileUrl 호출
  • 댓글 및 대댓글의 로그인한 사용자 닉네임 정보: UserContext를 사용하여 nickname 호출

구현 결과 화면🎨

유의사항🧨

@hyowonii hyowonii added the fix label Jan 23, 2023
@hyowonii hyowonii added this to the 로그인 milestone Jan 23, 2023
@hyowonii hyowonii self-assigned this Jan 23, 2023
@hyowonii hyowonii merged commit 0f700c3 into main Jan 23, 2023
hyowonii added a commit that referenced this pull request Jan 23, 2023
[FIX] 유저 아이디 필요한 백엔드 요청url 수정 (PR #89 에 이어서)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant