-
Notifications
You must be signed in to change notification settings - Fork 0
[PC-1642] Profile 수정, 로그아웃, 탈퇴, 토큰 만료 시 로컬 MyProfile 데이터 clear 로직 추가 #205
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
Merged
+52
−36
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
c8f9513
[PC-1642] MyProfile 수정, 로그아웃, 탈퇴, 토큰 만료 시 로컬 MyProfile 데이터 제거
comst19 b32cc10
[PC-1642] ci 빌드 실패 수정
comst19 7587aa3
[PC-1642] ci 빌드 실패 수정
comst19 2f85f23
[PC-1644] fcm 알림 채널 변경 및 중요도 변경 (#206)
comst19 3ec13b7
[PC-1642] 불필요한 join 처리 제거
comst19 226f390
[PC-1642] MyProfile 수정, 로그아웃, 탈퇴, 토큰 만료 시 로컬 MyProfile 데이터 제거
comst19 5968e4f
[PC-1642] ci 빌드 실패 수정
comst19 10a9433
[PC-1642] ci 빌드 실패 수정
comst19 d55eb92
[PC-1642] 불필요한 join 처리 제거
comst19 b383fe8
Merge branch 'fix/PC-1642' of https://github.com/Piece-Puzzly/Piece-A…
comst19 b87109f
[PC-1642] 토큰 만료 처리 및 세션 만료 로직 일원화
comst19 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
플로우를 잘 모르겠어서 질문드리는데 uploadProfile 성공 시 clearMyProfile 하고있는데 이건 api와 로컬인가요? 어떤관계인지??
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.
기존 유저의 가치관 픽, 톡은 데이터스토어로 캐싱을 합니다.
그리고 캐싱이 되어있지 않은 상태에서 load를 해야한다면 api 호출 -> 데이터 스토어 저장 -> 데이터 스토어 값 load 입니다.
업로드 프로필(PUT)을 하면 서버에 변경 요청을 하지만 기존에 데이터 스토어 값이 그대로 남아있어 다른 곳에서 load할 때 이전 값을 사용합니다.
그래서 추가적으로 토큰 만료, 로그아웃, 탈퇴 시 clear를 해줘야 서버의 데이터 동기화가 가능합니다.
로컬 캐싱 관련 로직 미리 봐두시면 좋을 거 같네요