Skip to content
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

Feature/circle detail screen #10

Merged
merged 79 commits into from
Jan 14, 2025
Merged

Conversation

mountainn-dev
Copy link
Collaborator

No description provided.

ItemClickListener 수정
ItemListenerInitializer 작성
CircleDetailViewModelFactory 추가
CircleDetailViewModel currentTabPosition 및 setTabPosition 추가
동아리 상세 화면 기존 requireActivity().supportFragmentManager 에서 childFragmentManager 로 전환
내부 tab 데이터는 기존 fragment 생성자 활용 방식에서 argument 활용 방식으로 전환
뷰모델 내 데이터 로딩 작업과 uiState 갱신 작업 분리
refresh() 에서는 commentLoadingJob.invokeOnCompletion 을 통해 ui 갱신
postDetail 뷰모델 내 MutableLiveData.postValueWhenAnimFinished 작성
anim 이 종료된 경우에만 postValue, 그렇지 않은 경우 tmpState 에 저장 및 anim 종료 이후 postValue
기존 댓글 데이터 호출 후 본문 내용과 댓글을 한 번에 로딩하는 방식에서 본문 먼저 로딩 후 댓글은 호출되는대로 로딩하는 방식으로 수정
뷰모델에서 작성된 댓글이 기존 데이터에 반영되도록 수정
job 네이밍의 경우, verb - noun - job 의 형식으로 작성
load 와 fetch 의 경우, 로컬 소스로부터 데이터를 가져오면 load, 외부 소스로부터 데이터를 가져오면 fetch 로 구분하여 작성
컬렉션 확장함수에서 자체적으로 불변성을 보장하기 때문에 굳이 Stack 을 이용한 tmp 변수를 사용하지 않고, 모델 원본을 사용하도록 수정
@mountainn-dev mountainn-dev merged commit 335ec5e into develop Jan 14, 2025
1 check passed
@mountainn-dev mountainn-dev deleted the feature/circle_detail_screen branch February 23, 2025 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant