Skip to content

[#135] TodoListView에서 여러 데이터를 제거 후 다른 뷰로 넘어갔다 돌아오면 지워졌던 데이터가 롤백되는 현상을 해결한다#142

Merged
opficdev merged 1 commit intodevelopfrom
fix/#135-TodoListView-Multiple-Undo-Fail
Feb 26, 2026
Merged

[#135] TodoListView에서 여러 데이터를 제거 후 다른 뷰로 넘어갔다 돌아오면 지워졌던 데이터가 롤백되는 현상을 해결한다#142
opficdev merged 1 commit intodevelopfrom
fix/#135-TodoListView-Multiple-Undo-Fail

Conversation

@opficdev
Copy link
Owner

@opficdev opficdev self-assigned this Feb 26, 2026
@gemini-code-assist
Copy link

Summary of Changes

Hello @opficdev, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 Pull Request는 TodoListView에서 여러 할 일 항목을 삭제할 때 발생할 수 있는 데이터 불일치 문제를 해결합니다. 사용자가 여러 항목을 빠르게 스와이프하여 삭제하고 다른 화면으로 이동했다가 돌아올 경우, 일부 삭제된 항목이 다시 나타나는 현상을 방지하기 위해 보류 중인 삭제 작업을 보다 견고하게 처리하도록 ViewModel의 로직을 개선했습니다.

Highlights

  • 데이터 롤백 현상 해결: TodoListView에서 여러 항목을 스와이프하여 삭제한 후 다른 뷰로 이동했다가 돌아왔을 때, 이전에 삭제되었던 데이터가 다시 나타나는 롤백 현상을 해결했습니다.
  • 보류 중인 작업 처리 로직 개선: 새로운 스와이프 삭제 작업이 발생하기 전에, 이전에 보류 중이던(pending) 작업이 있다면 해당 항목에 대한 영구 삭제 효과를 즉시 발생시키도록 로직을 추가했습니다.
Changelog
  • DevLog/Presentation/ViewModel/TodoListViewModel.swift
    • 새로운 swipeTodo 액션이 처리되기 전에 state.pendingTask에 저장된 이전 항목이 있다면 해당 항목의 ID로 .delete SideEffect를 생성하도록 수정되었습니다.
    • 이제 swipeTodo 액션은 state.pendingTask를 업데이트하기 전에 이전 보류 중인 항목에 대한 삭제 효과를 반환할 수 있습니다.
Activity
  • 이 PR은 이슈 #135를 닫습니다.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

이 Pull Request는 TodoListView에서 여러 데이터를 제거한 후 다른 뷰로 이동했다가 돌아올 때 이전에 지워졌던 데이터가 롤백되는 현상을 효과적으로 해결합니다. swipeTodo 액션 처리 시 이전에 보류 중이던 삭제 작업이 있다면 즉시 실행되도록 하여 데이터 일관성을 유지합니다. 변경 사항은 간결하며 문제 해결에 적합합니다.

@opficdev opficdev merged commit 261ee3b into develop Feb 26, 2026
1 check passed
@opficdev opficdev deleted the fix/#135-TodoListView-Multiple-Undo-Fail branch February 26, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant