feature#52 like 좋아요 기능 구현 #68
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📌 Issue
🔖 요약
🛠 작업 내용
LikeDataStoreManager@Singleton으로 선언하여 사용자 ID에 따라 LikeDataStore를 제공합니다.like.protoLikeViewModelobserveLikes: 좋아요 등록/해제한 상품의 id를 구독합니다.loadFavorites: 좋아요 목록을 가져와 UI에 표현합니다. 좋아요 탭에서 좋아요 등록/해제를 할 때는 항목이 사라지지 않게 하기 위해 해당 메소드는 좋아요 탭에 진입했을 때만 호출하도록 설계하였습니다.toggleFavorite: 좋아요 등록/해제 시, dataStore에 저장하도록 하였습니다.LogoutUseCase