-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FE] 클라이언트 영역 에러 핸들링 개선 (토스트 UI) #419
Merged
Merged
Commits on Oct 24, 2024
-
feat: Context API를 사용해서 전역적으로 에러 상태를 관리할 수 있도록 개선
- 에러 상태와 에러 상태를 변경하는 컨텍스를 구분 - QueryClientManager 컴포넌트에서 mutation에서 에러가 발생하면 이를 감지해 에러 상태를 업데이트 - Context API에서 공유받는 데이터를 편하게 사용할 수 있도록, 커스텀 훅으로 useContext를 추상화
Configuration menu - View commit details
-
Copy full SHA for ac9eac5 - Browse repository at this point
Copy the full SHA ac9eac5View commit details -
refactor: fetchClient 함수 로직 변경, fetcher 모듈 생성
- fetchClient 함수에서 데이터를 반환하는 것이 아니라, 서버의 응답 객체를 반환하는 것으로 수정 - 예외가 발생했을 경우에는 ResponseError 객체를 생성해서 에러를 throw - get, post, postWithResponse, delete 메서드 생성
Configuration menu - View commit details
-
Copy full SHA for cec18f9 - Browse repository at this point
Copy the full SHA cec18f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 27b888b - Browse repository at this point
Copy the full SHA 27b888bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 58a4547 - Browse repository at this point
Copy the full SHA 58a4547View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f824b5 - Browse repository at this point
Copy the full SHA 4f824b5View commit details -
refactor: AuthProvider 컴포넌트에서 예외적으로 useParams 훅을 사용하는 것으로 수정
- 기존 UuidContext를 사용하면 undefined로 참조되는 문제를 해결하기 위해 예외 처리
Configuration menu - View commit details
-
Copy full SHA for 8e5d8ac - Browse repository at this point
Copy the full SHA 8e5d8acView commit details -
Configuration menu - View commit details
-
Copy full SHA for e0275f9 - Browse repository at this point
Copy the full SHA e0275f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for f381a55 - Browse repository at this point
Copy the full SHA f381a55View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f7d3bb - Browse repository at this point
Copy the full SHA 2f7d3bbView commit details
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.