[FE] fix: 로그인, 파일불러오기 ,파일 삭제 오류 해결 #141
Merged
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.
PR 설명
로그인, 파일 불러오기, 파일 삭제 오류 해결
✅ 완료한 기능 명세
고민과 해결과정
로그인 버튼 리다이렉트 쿼리 문제
모달이 Router Provider바깥에서 렌더링 되기때문에 useParams가 제대로 동작하지 않았다.
window.location.pathname으로 얻어와서 처리해주었다.
모달이 바로 뜨지 않는 문제
refetch함수는 promise를 반환하는 비동기 함수다.
await로 해결해주었다.