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

🔀 :: (#233) Fix can't collect LoginTokenResponse #237

Merged
merged 9 commits into from
Jul 15, 2024

Conversation

Chaejongin12
Copy link
Collaborator

💡 개요

로그인 시 AuthTokenResponse가 넘어오지만 UI Layer에서 ViewModel내의 Flow를 업데이트 하지 못해 Login이 성공했음에도 MainPage로 안넘어가짐

📃 작업내용

로그인 시 AuthTokenResponse가 넘어올때 Flow를 업데이트할 수 있도록 했습니다.

2024-05-28.2.35.23.mov

스크린샷 2024-07-15 오전 10 57 00

🔀 변경사항

로그인 시 AuthTokenResponse가 넘어올때 AuthRepository에서 emit하여 data를 발행해 업데이트를 감지할 수 있도록 변경하였습니다.

🙋‍♂️ 질문사항

Repository에서 emit하는 방식이 아닌 다른 좋은 방식이 있거나 컨벤션에 맞지 않는 부분 비효율적인 코드가 있다면 알려주세요.

@Chaejongin12 Chaejongin12 self-assigned this Jul 15, 2024
@Chaejongin12 Chaejongin12 linked an issue Jul 15, 2024 that may be closed by this pull request
Copy link
Member

@audgns10 audgns10 left a comment

Choose a reason for hiding this comment

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

수고하셨습니다

Copy link
Collaborator

@diejdkll diejdkll left a comment

Choose a reason for hiding this comment

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

다른 transform 사용하는 부분도 emit으로 처리해야하나요?

@Chaejongin12
Copy link
Collaborator Author

다른 transform 사용하는 부분도 emit으로 처리해야하나요?

넵 그런 것 같습니다.

transform이 새로운 Flow를 만들고 이를 emit해주는 방식으로 알고 있습니다.

추후 데이터의 복잡한 연산을 위해 transform형태는 유지하되 기존의 Response가 오는 형태의 API들에는 Repository단에서의 emit이 필요할 것 같아요.

@Chaejongin12 Chaejongin12 merged commit a94c57d into develop Jul 15, 2024
1 check passed
@Chaejongin12 Chaejongin12 deleted the fix/#233_fix_cannot_collect_login_response branch July 15, 2024 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LoginResponse가 성공함에도 Collect 되지 않음
4 participants