-
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
[FE] feat: 라우팅 관련 처리 #752
[FE] feat: 라우팅 관련 처리 #752
Conversation
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.
오늘 하루종일 왜 안되냐며 분노하던 황펭에게 approve를 드립니다.
카카오 링크 때문에 App을 나가서 컨텍스트가 초기화된다는 교훈을 얻게 됐네요.
축하드립니다.
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.
코멘트 확인해주세요~~ 고생하셨슴다
}; | ||
}; | ||
|
||
export default useLocalStorage; |
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.
React의 hooks를 사용하지 않으니 custom hook 말고 util로 분리해도 되지 않을까요?
특히 setLocalStorage
라는 함수가 useLocalStorage
에서 사용된다면 setState 함수로 오해할 수도 있을 것 같아요
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.
좋습니다!
} catch (error) { | ||
return item; | ||
} |
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.
에러 났을 때 왜 item을 return하는건가요?! 궁금..
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.
json 메서드 실행 에러를 잡아주는 친구입니다
만약 문자열을 저장했다면 에러 발생하고 catch로 가서 문자열 그대로를 반환하는 느낌??
로컬스토리지 로직 유틸함수로 이동했습니다. 확인해주세요! |
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.
귯~ 수고하셨어여~~~
Issue
✨ 구현한 기능
📢 논의하고 싶은 내용
x
🎸 기타
⏰ 일정