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

[ADD] BaseViewModel에 EventState (SharedFlow) 추가 #355

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

dongx0915
Copy link
Member

📌 개요

✨ 작업 내용

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

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

✨ PR 포인트

📸 스크린샷/동영상

@dongx0915 dongx0915 added ADD ➕ feat 이외의 부수적인 코드, 파일, 라이브러리 추가 동현 🐨 동현 담당 labels Jun 16, 2024
@dongx0915 dongx0915 self-assigned this Jun 16, 2024
Copy link
Contributor

@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