-
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
[REFACTOR] 구매전 뷰 구조 리팩토링 (MVC -> Clean Architecture(MVVM 섞어서) #104
Comments
i-colours-u
added a commit
that referenced
this issue
Jan 28, 2022
i-colours-u
added a commit
that referenced
this issue
Jan 28, 2022
i-colours-u
added a commit
that referenced
this issue
Jan 28, 2022
4 tasks
i-colours-u
added a commit
that referenced
this issue
Feb 16, 2022
i-colours-u
added a commit
that referenced
this issue
Feb 16, 2022
i-colours-u
added a commit
that referenced
this issue
Feb 16, 2022
i-colours-u
added a commit
that referenced
this issue
Feb 16, 2022
i-colours-u
added a commit
that referenced
this issue
Feb 19, 2022
i-colours-u
added a commit
that referenced
this issue
Feb 19, 2022
i-colours-u
added a commit
that referenced
this issue
Feb 20, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
📌 Fix Issue
Repository -> UseCase -> ViewModel -> View 형태로 4단계로 레이어 나뉘어서 처리.
1)Repository : 서버에서 원천 데이터 (raw Data) 들고오는 역할만 하기
2)UseCase : 원천 데이터를 원하는 model로 비지니스 로직과 함께 핸들링하기
3)ViewModel : 가져온 데이터를 뷰에 뿌려줄 수 있도록 처리하기
4)View : 뷰 입장에서는 단순히 뷰 모델에서 받은 데이터를 뿌릴수만 있도록 처리하기.
여기서 주의할 점은 1)->2)->3)->4) 순으로 데이터가 흘러야 한다.
뒤에 있는 구조는 앞에서 어떤 일이 일어나는지 파악 할 수 없어야 한다 !! (매우 중요)
📝 To-do
The text was updated successfully, but these errors were encountered: