Skip to content

Conversation

@dlcks0601
Copy link
Contributor

#️⃣연관된 이슈

#23

📝작업 내용

  1. 메인페이지 컨텐츠 부분 병합 (헤더, 서치바, 태그바, 질문 컨텐츠) 2859027
  2. 헤더 디자인 수정 -> 메뉴 (드롭다운) 9a00db2 8d436d7
  3. authorization에 헤더가 안담기는 문제 해결 a6268c7
  4. 폴더 구조 정리 및 리팩토링 352f379 7f37d56 c102646 1f10221 9527e79

스크린샷 (

스크린샷 2024-12-17 오후 9 27 00
선택)
로그인 x
스크린샷 2024-12-17 오후 9 27 42

로그인 o
스크린샷 2024-12-17 오후 9 27 14

💬리뷰 요구사항(선택)

@dlcks0601 dlcks0601 changed the base branch from main to develop December 17, 2024 12:28

type RequestMethod = 'get' | 'post' | 'put' | 'delete';

export const requestHandler = async <R = undefined, T = undefined>(
Copy link

Choose a reason for hiding this comment

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

요 친구는 어디에 쓰이는 걸까요?

메소드를 함수형으로 호출하는 대신 string 인자를 통해 전달하는 것이 더 좋은 방식일까요?

Comment on lines +28 to +31
// Redux 상태 초기화
dispatch(logout());
// 토큰 제거
removeToken();
Copy link

Choose a reason for hiding this comment

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

login의 경우에는 reducer 내부에서 토큰을 관리하는데, logout의 경우에는 왜 밖에서 관리할까요?
둘 중 어디가 정답이라고 할 수는 없겠지만, 적어도 양쪽이 같은 방식으로 해야 나중에 코드를 이해하기도 좋을 것 같아요!

그러고보니 login 시에도 미리 선언해둔 setToken 함수를 이용하면 더 좋겠네요 👀

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