FESI-4-4 / slid-todo

효율적인 할 일 관리 및 노트 작성 서비스 Slid Todo
https://slid-todo-xi.vercel.app
4 stars 4 forks source link

[ 목표 ] 대시보드, NAV, 새 할일 모달의 목표 셀렉터에서 목표가 동일하게 업데이트 되지 않는 오류 #373

Open MinaRoh opened 4 hours ago

MinaRoh commented 4 hours ago

이슈 내용

✅ To Dos

mnmnk43434 commented 4 hours ago

Hello, we tried to solve the issue.

This is what we did:

Modified useAddGoalMutation and useDeleteGoalMutation hooks to invalidate and refetch the 'todos' query along with the 'goals' query. This ensures that the dashboard's recent todos are updated when goals are added or deleted.

You can review changes in this commit: https://github.com/mnmnk43434/FESI-4-4-slid-todo-373/commit/067b313cbb69525e587075f6351af4838ef9ae5a.

[!CAUTION] Disclaimer: The concept of solution was created by AI and you should never copy paste this code before you check the correctness of generated code. Solution might not be complete, you should use this code as an inspiration only.


If you no longer want Latta AI to attempt solving issues on your repository, you can block this account.