Repository navigation
feat: 공통 오류 화면과 종 관리·사육 가이드 불러오기 실패 화면 추가 (#55, #45) - #59
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
개요
종·가이드 목록을 불러오지 못하면 빈 화면으로 멈췄다. Figma의 공통 오류 화면(W-E3 서버 오류, W-E4 연결 끊김)과 화면별 실패 화면(W-3j 종 목록, W-4g 가이드)을 추가한다.
closes #55
closes #45
변경 사항
처음 불러오기가 실패하면 원인에 따라 화면을 고른다. 이미 받은 값이 있으면 화면을 바꾸지 않는다.
app/error.tsx에 W-E3·W-E4를 만들었다. 상단 바 제목은 "오류"이고, "다시 시도"를 누르거나 다른 메뉴에 갔다 오면 실패한 요청을 다시 보낸다lib/loadError.ts에 오류 종류 판단과 세 화면의 쿼리 공통 설정(retry: false,networkMode: "always",throwOnError)을 모았다.networkMode를 바꾼 건 오프라인일 때 요청이 보류되어 빈 화면에 멈추지 않게 하려는 것SpeciesManager에 W-3j를 넣고, W-4g는GuidesError로 추가했다확인 방법
typecheck, eslint, prettier, build,npm test(34개) 통과참고