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

WEEK7 : 필수과제 완료 #5

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

WEEK7 : 필수과제 완료 #5

wants to merge 3 commits into from

Conversation

HAJIEUN02
Copy link
Contributor

@HAJIEUN02 HAJIEUN02 commented Dec 22, 2023

📚명세

  • 로그인 UI State 분리
  • 회원가입 UI State 분리

🎬시연영상

급해죽겠는데ㅜㅜ 영상녹화가 안돼서 일단 캡쳐라도 했습니다 되면 바로 바꿔둘게욥
못했던 6주차 과제도 얼릉 끝내볼게요!!!!!!!!

0
0
0
0

0
0


💛과제리뷰

드디어 종강!!!!!
드디어 한가해졌숨당
그리고 드디어!!! 다음 주에 램16으로 업데이트하러 갑니다 ㅋ ㅋ

아직 라이브데이터나 코루틴, Flow 전부 다 너무 어렵고 이해가 잘 안돼서 앱잼 전에 공부하면서 합세 코드랑 셈나 과제 코드들 대거 리팩해보는게 목표입니당.
3달 안드 쫌 배웠다고 지금까지 쓴 코드가 되게 별로인게 눈에 보여요 ㅎ;;
아자자💪💘💘 지켜봐주세요

Copy link

@pump9918 pump9918 left a comment

Choose a reason for hiding this comment

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

앱잼 잘 달려보자이 수고했습니다~~!!

if(it!=null) {
_signUpState.value = SignUpState.Success(it)
}else{
_signUpState. value = SignUpState.Error

Choose a reason for hiding this comment

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

value 띄어쓰기 부분! 붙여야 할 것 같아요~

showToast("네트워크 에러 발생")
}
})
authViewModel.signUp(

Choose a reason for hiding this comment

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

authViewModel의 signup과 버튼을 누르는 signup함수 이름이 같아서 조금 헷갈렸어요.
구분해주면 더 좋을 것 같아요!

Copy link

@jihyunniiii jihyunniiii left a comment

Choose a reason for hiding this comment

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

야무지다 야무져 ㅠ 앱잼도 파이팅 핑랑해 ~


fun login(id: String, password: String) {
viewModelScope.launch {
kotlin.runCatching {

Choose a reason for hiding this comment

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

Suggested change
kotlin.runCatching {
runCatching {

지워줘도 됩니둥

val response = authService.signup(RequestSignUpDto(id, password, nickname))
response.body()
}.onSuccess {
if(it!=null) {

Choose a reason for hiding this comment

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

코드 정렬을 생활화 합시다

Choose a reason for hiding this comment

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

하나의 UIState를 만들어서 적용할 수도 있답니다! LoginState와 SignUpState를 따로 나누지 않고요

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants