[FE] 일반로그인시에 리액트쿼리로 invalidate하고 에러메시지 정상표시안되던 현상을 해결한다. #916
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.
❗ Issue
✨ 구현한 기능
일반로그인시에 리액트쿼리를 사용하고 캐시invalidate.
원래 정의했던에러문구가아니라 서버에러메시지가 바로표시 되고있었네요.
api도 fetcher 사용하게끔해서 리액트쿼리로 감싸주니까 상수화한에러문구로나옵니다.
예시사진 : 둘다 동일하게 비번틀렸을때 사진
적용전 (백엔드 메시지가 노출됨)
적용후 (상수화한 에러문구로 나옴)
📢 논의하고 싶은 내용
🎸 기타