KHUCapston-concoder / KHUCapston-concoder/Frontend
[Feat] useHttp 훅 내에 error, loading 기능 잘되게 변경 및 에러 핸들링 공통 컴포넌트 개발
- Dominant language
- TypeScript
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
https://github.com/KHUCapston-concoder/Frontend/blob/b0dd564660588eceed258c1cbe22582432056bc0/src/hooks/useHttp.ts#L31-L58
원래 의도는 error, loading 정보를 hook에 담아 모든 httpRequest에 대해 공통으로 처리하려고 하였으나, 모종의 이유로(...) 제대로 동작하지 않는것처럼 보임. 해당 기능을 fix 하고 추가로 error 상황에 대해 공통 컴포넌트로 관리하도록 개선하면 좋을 듯함
https://fe-developers.kakaoent.com/2022/221110-error-boundary/
카카오에서 React16 Error Boundary 기능을 사용해서 에러 핸들링을 한다고 하는데, 참고해서 비슷한 형식으로 개발하면 좋을 듯 합니다.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with src/hooks/useHttp.ts lines 31-58 and inspect how its error and loading state is used across HTTP requests. Read the linked Kakao Error Boundary article for the proposed reference, then identify the existing error-handling entry points before defining the shared component. Done means the hook behavior is fixed and error situations are handled through a common component.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100