-
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
🔀 :: (#233) Fix can't collect LoginTokenResponse #237
🔀 :: (#233) Fix can't collect LoginTokenResponse #237
Conversation
…Entity변환 과정에서 emit하도록 변경
:: conflict fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
다른 transform 사용하는 부분도 emit으로 처리해야하나요?
넵 그런 것 같습니다. transform이 새로운 Flow를 만들고 이를 emit해주는 방식으로 알고 있습니다. 추후 데이터의 복잡한 연산을 위해 transform형태는 유지하되 기존의 Response가 오는 형태의 API들에는 Repository단에서의 emit이 필요할 것 같아요. |
💡 개요
로그인 시 AuthTokenResponse가 넘어오지만 UI Layer에서 ViewModel내의 Flow를 업데이트 하지 못해 Login이 성공했음에도 MainPage로 안넘어가짐
📃 작업내용
로그인 시 AuthTokenResponse가 넘어올때 Flow를 업데이트할 수 있도록 했습니다.
2024-05-28.2.35.23.mov
🔀 변경사항
로그인 시 AuthTokenResponse가 넘어올때 AuthRepository에서 emit하여 data를 발행해 업데이트를 감지할 수 있도록 변경하였습니다.
🙋♂️ 질문사항
Repository에서 emit하는 방식이 아닌 다른 좋은 방식이 있거나 컨벤션에 맞지 않는 부분 비효율적인 코드가 있다면 알려주세요.