Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PR Convention Example

Will edited this page Aug 1, 2023 · 5 revisions

Motivation ⍰

  • 로딩뷰 커스텀
  • viewModel에 isLoading라는 PassthroughSubject변수 생성
  • 네트워크 함수가 호출됐을 때, isLoading ture, 끝나면 false를 던져줌

Key Changes 🔑

  • QuestionDataViewModel에 isLoading이라는 PassthroughSubject를 생성해서 네트워크 함수 호출 시 true, 끝나면 false를 send함
  • 그리고 사용하는 view에서는 isLoading라는 state변수를 만들고 QuestionDataViewModel의 isLoading의 값에 일치시켜서 로딩 뷰를 띄울 지 말지 구분

To Reviewers 🙏🏻

  • 질문 타입 정하는 화면에서 로딩뷰가 잘 돌아가는지 확인해주세요
  • 질문 좋아요 또는 싫어요 버튼 클릭 시, 로딩뷰가 잘 돌아가는지 확인해주세요(이거는 안 될 겁니다..)

Linked Issue 🔗

  • #42

해당 페이지가 2모듈 이상 필요한 경우 따로 독립된 코디네이터를 만든다.

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /