-
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
[hotfix] 마이페이지 / 로딩 프로그레스바 추가 #290
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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 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 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
Oops, something went wrong.
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.
애니메이션 쪽 코드를 완전히 이해하지는 못했지만 ,, 😂
현재는 스크롤에 따라 애니메이션을 실행시키는 함수가 getUserState Success 블록에 종속되어 있는 거 같더라구요!
이 둘의 의존성을 끊어내고 애니메이션을 구현하는 방법은 없을까 라는 생각이 들었습니다!
getUser 서버 통신의 응답값은 데이터 스토어에 저장되니까 이를 이용해서
getUserState 결과와 별개로 스크롤 리스너를 정의해두면 어떤 결과가 나올지 궁금했어요..!
애니메이션 코드가 getUserState에 종속되지 않으면, 데이터 로딩 상태와 무관하게 애니메이션은 잘 실행되지 않을까 싶은?!
대신에 getUser 서버 통신에 실패하면 최신 유저 데이터가 아닌 데이터스토어에 저장된 예전 데이터를 불러온다는 것은 단점인 거 같아요. 서버통신 실패 시 어떻게 처리할지 고민이 필요할 거 같습니다!