-
Notifications
You must be signed in to change notification settings - Fork 2
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
[fix] 토큰 재발급 이슈 해결 #247
[fix] 토큰 재발급 이슈 해결 #247
Conversation
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.
고생핑!
@@ -134,6 +136,20 @@ class HomeFragment : BindingFragment<FragmentHomeBinding>(R.layout.fragment_home | |||
} | |||
|
|||
private fun collectData() { | |||
combine( |
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.
아하 지도뷰 / 리스트뷰 동시에 서버통신 보내지면서 이슈가 생긴 거였나보네요
서버통신을 2개 같이 보내면 이런 문제가 생긴다는 사실을 첨 알았서여
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.
힝구핑 ㅜ
homeViewModel.category.flowWithLifecycle(viewLifecycleOwner.lifecycle).distinctUntilChanged(), | ||
homeViewModel.searchWord.flowWithLifecycle(viewLifecycleOwner.lifecycle).distinctUntilChanged(), | ||
homeViewModel.mainListOrderType.flowWithLifecycle(viewLifecycleOwner.lifecycle).distinctUntilChanged(), | ||
homeViewModel.homeViewType.flowWithLifecycle(viewLifecycleOwner.lifecycle).distinctUntilChanged() |
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.
근데 아무리 생각해도 여기 왜 distinctUntilChanged가 있어야 작동이 제대로 되는 건지 모르겠네핑,,,,
repeatOnLifecycle을 사용해보면 어떨까요?? 저도 잘 모르는 부분이긴 한데 찾아보니까 여러 flow에서 수집해야 하는 경우 사용하는 거라는데..
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.
이번 스프린트 끝나고 리팩할 때 시도해봐야겠서요,,, 함냐 ㅜ 생명주기 관련 문제인 것 같긴 한데핑,,,
combine( | ||
homeViewModel.category.flowWithLifecycle(viewLifecycleOwner.lifecycle).distinctUntilChanged(), | ||
homeViewModel.searchWord.flowWithLifecycle(viewLifecycleOwner.lifecycle).distinctUntilChanged(), | ||
homeViewModel.mainListOrderType.flowWithLifecycle(viewLifecycleOwner.lifecycle).distinctUntilChanged(), | ||
homeViewModel.homeViewType.flowWithLifecycle(viewLifecycleOwner.lifecycle).distinctUntilChanged() | ||
) { _, _, _, homeViewType -> | ||
homeViewType | ||
}.onEach { homeViewType -> |
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.
combine 공부좀 해야겠네요 ㅠㅠ 봐도 모르겠심
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.
고고고고고고고고생핑
근데 서버통신 한번에 2개 보내려면 어떻게 해야할까여.. 의문..
이거는 재발급 로직을 바꿔야 함요 ㅜ 건빵은 동기적으로 만들었다는데 그렇게 해야할 듯,, 아직은 2개 보내는 경우가 없으니까,, 일단 이대로 가고,, 그런 경우가 생기면 수정합시둥 |
Related issue 🛠
Work Description ✏️
Screenshot 📸
base url 나오면 안 될 것 같아서 일부만 캡쳐 ㅋㅋ
Uncompleted Tasks 😅
To Reviewers 📢