Skip to content

[5주차/오스카] 워크북 제출합니다.#51

Open
OscarKang1 wants to merge 2 commits intoUMC-Inha:오스카/mainfrom
OscarKang1:main
Open

[5주차/오스카] 워크북 제출합니다.#51
OscarKang1 wants to merge 2 commits intoUMC-Inha:오스카/mainfrom
OscarKang1:main

Conversation

@OscarKang1
Copy link
Copy Markdown

✅ 워크북 체크리스트

  • 모든 핵심 키워드 정리를 마쳤나요?
  • 핵심 키워드에 대해 완벽히 이해하셨나요?
  • 이론 학습 이후 직접 실습을 해보는 시간을 가졌나요?
  • 미션을 수행하셨나요?
  • 미션을 기록하셨나요?

✅ 컨벤션 체크리스트

  • 디렉토리 구조 컨벤션을 잘 지켰나요?
  • pr 제목을 컨벤션에 맞게 작성하였나요?
  • pr에 해당되는 이슈를 연결하였나요?(중요)
  • 적절한 라벨을 설정하였나요?
  • 파트장에게 code review를 요청하기 위해 reviewer를 등록하였나요?
  • 닉네임/main 브랜치의 최신 상태를 반영하고 있는지 확인했나요?(매우 중요!)

📌 주안점

Comment thread mission/chapter05/ch5_m2/src/hooks/useLocalStorage.ts
Comment thread mission/chapter05/ch5_m3/src/api/axiosInstance.ts Outdated
Comment thread mission/chapter05/ch5_m1/src/hooks/useLocalStorage.ts
Copy link
Copy Markdown
Collaborator

@qkrdmsthff qkrdmsthff left a comment

Choose a reason for hiding this comment

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

LGTM 오스카 이번주도 수고하셨습니다!
그리고 PR 올리실 때 커밋 메세지 규칙 지켜주세용!

return [storedValue, setValue, removeValue] as const;
}

export default useLocalStorage;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

현재 useLocalStorage 훅은 내부 상태만 변경하고 있어서 외부 상태인 Axios interceptor 에서 로컬 스토리지를 직접 수정했을 때, 리액트 상태가 자동으로 업데이트되지 않는 문제가 발생할 수 있습니다!!

window 의 storage 이벤트를 리스닝하는 브릿지 로직을 추가하여 외부 로직과의 동기화를 보완해보면 좋을 것 같습니다!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants