Skip to content

Conversation

dongx0915
Copy link
Member

📌 개요

✨ 작업 내용

  • UI 관련 작업 -> StateFlow 사용
  • 1회성 이벤트 처리 -> SharedFlow 사용
    • 토스트, 스낵바 등

위와 같이 구성하면 좋을 것 같아서 BaseViewModel에 eventState (sharedFlow) 를 추가하였습니다.

✨ PR 포인트

📸 스크린샷/동영상

@dongx0915 dongx0915 added ADD ➕ feat 이외의 부수적인 코드, 파일, 라이브러리 추가 동현 🐨 동현 담당 labels Jun 16, 2024
@dongx0915 dongx0915 requested review from leeeha, sxunea and unam98 June 16, 2024 15:22
@dongx0915 dongx0915 self-assigned this Jun 16, 2024
Copy link
Collaborator

@unam98 unam98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

좋군여 👍🏻

data class ShowSnackBar(val message: String) : EventState
data class NetworkError(val message: String) : EventState
data class UnknownError(val message: String) : EventState
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

네이밍과 관련해서 가장 최근 pr에 코멘트 하나 달아뒀어요! 확인 부탁드립니다 :)

@unam98 unam98 force-pushed the develop branch 2 times, most recently from fb1f98f to f8525c2 Compare June 19, 2024 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ADD ➕ feat 이외의 부수적인 코드, 파일, 라이브러리 추가 동현 🐨 동현 담당
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ADD] BaseViewModel에 EventState (SharedFlow) 추가
3 participants