[FIX] 게시물 하트 버그 수정 - #258
Conversation
There was a problem hiding this comment.
Code Review
This pull request synchronizes and reactively updates the post liked and bookmarked states across the home, community, and post detail screens, including wrapping the home post list in an Obx widget. The review feedback identifies a critical bug in _resolveIsFavorite where an initial liked state prevents unlike actions from taking effect, and points out a missing local persistence call in HomeController.updatePostLike that leads to state loss on app restart. Additionally, the reviewer recommends awaiting the updated asynchronous updatePostLike method and replacing an inefficient list copy with a simple refresh call on the reactive list.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
0c71bbc to
485a966
Compare
- LikeStateController 제거 후 PostController로 좋아요 이벤트/동기화 로직 병합 - LikeChangedEvent를 domain/post/entity로 이동 - LikeStateController 전역 바인딩을 PostBinding(permanent)으로 이동 - HomeController _updatePostLikeInList의 delta 인자 제거 (내부에서 계산) - PostViewBinding의 미사용 isFavorite 인자 제거 및 호출부 정리 - CustomIconButton을 StatefulWidget으로 변경해 자체 상태 관리 (totalStyle.copyWith) - CommunityPostList PostItem key를 postId 기준으로 단순화 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
📌 개요
게시물 하트 기능 버그를 수정하도록 하겠습니다.
🎯 작업 목표
🧩 작업 내용
✅ 완료 조건
📎 참고 사항
closes #254