[#534] TodoEditor에서 Todo를 수정하면 HomeView에서 최근 수정 섹션에 해당 Todo가 반영되지 않는 현상을 해결한다#554
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces the TodoMutationEventBus to publish and observe todo mutation events (updated, deleted, restored), allowing the HomeViewCoordinator to refresh recent todos dynamically. The feedback suggests ensuring that the event bus is registered as a singleton in the DI container to guarantee proper event delivery, and adding a guard check to break the asynchronous event stream loop in HomeViewCoordinator when self is deallocated.
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.
🔗 연관된 이슈
🎯 의도
📝 작업 내용
📌 요약
TodoMutationEventBus추가TodoRepositoryImpl의 Todo 수정, 삭제, 복원 성공 시TodoMutationEvent방출TodoMutationEvent구독 후 최근 Todo 목록 갱신HomeViewCoordinator의 AsyncStream 구독 task 관리 구조 개선🔍 상세
TodoMutationEvent와TodoMutationEventBus를 Domain 계약으로 추가TodoMutationEventBusImpl구현TodoRepositoryImpl에서updated,deleted,restored이벤트 방출HomeViewModel에refreshRecentTodos액션 추가HomeViewCoordinator에서 Todo mutation stream 구독 후 최근 Todo만 refreshstreamTasks기반 task 관리 구조 적용TodoMutationEventBusImplTests,TodoRepositoryImplTests로 event bus 전달과 repository 방출 검증📸 영상 / 이미지 (Optional)