-
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
feat: AuthProvider 구현 #23
base: staging
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
setLocalStorageItem(USER_KEY, { | ||
nickname: responseMember.nickname, | ||
location: responseMember.location, | ||
}); | ||
await memberFoodKeywordApi.saveMemberFoodKeywordAxios(foodKeywords); |
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.
혹시 tanstack query로 안한 이유가 있을까요?
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 query로 변경해보면 좋을까요?
제가 아직 익숙하지 않아서 그런것 같네요
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.
useMutation을 사용하시면 create/update/delete 메서드 들에 대해서 조금 더 쉽게 처리가 가능할 거 같아요 :) 아무래도 저희가 이번에는 tanstack query를 최대한 사용하는게 목표라서 한번 사용해보시는것도 좋은 방법일 거 같습니다 :)
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.
이를 사용해서 onSuccess 같은 곳에서 query key invalidation을 통해 stale한 데이터에 대해서도 invalidate를 하기도 수월할 거 같습니다 :)
작업 주제
작업 내용(어떤 부분을 리뷰어가 집중해서 봐야할까요?)
체크리스트(PR 올리기 전 아래의 내용을 확인해주세요.)
리뷰 규칙