fix: completed tasks reappearing as overdue (#2) #4
Reference in New Issue
Block a user
Delete Branch "fix/issue-2-task-completion-persistence"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
.task(runs once on first appearance) to load schedule data, missing updates from Core Data background context saves.onAppearto reload the care schedule every time the view appears, matching the pattern already used in TodayViewFiles Changed
PlantGuide/Presentation/Scenes/PlantDetail/PlantDetailViewModel.swift— AddedrefreshSchedule()public method to reload schedule from Core DataPlantGuide/Presentation/Scenes/PlantDetail/PlantDetailView.swift— Added.onAppearhandler to refresh schedule on every view appearanceHow to Test
Fixes #2