Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📄 에러 처리 중복 현상 제거
📝 변경 사항 요약
📌 관련 이슈
🔍 변경 사항 상세 설명
이전에 수정한 방식에서
QueryClient에 공통으로get요청에 대한 에러 처리를 해두었고 공통api함수에서도 공통으로 에러 처리를 하게 되어서 이를 수정기존에는
mutation에러가 발생하면 공통 에러처리,useMutation에서onError로 에러처리가 2번 중복되었다.get요청에 대한 에러 처리는 기존처럼 공통으로 두고 공통api에서 처리하지 않고status,message만 넘겨주어useMutation을 사용한 hook에서 개별로 처리할 수 있도록 하였다.✅ 확인 사항