Skip to content
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

refactor(fe): use tanstack query for MySubmission #2250

Merged
merged 12 commits into from
Jan 5, 2025

Conversation

Kimhyojung0810
Copy link
Contributor

@Kimhyojung0810 Kimhyojung0810 commented Nov 28, 2024

Description

app/(client)/_libs
- apis
   - contestProblem.ts
   - problem.ts 
   - submission.ts (추가됨)
   - type.ts 

- queries
  - contestProblem.ts 
  - submission.ts (추가됨)

Additional context

Client-side 데이터 요청할 때 useEffect 대신 Tanstack query를 적용하였습니다.

  1. API 호출 함수, 요청/응답 타입 추가 - submission.ts
  2. 쿼리 옵션 추가 (앞서 추가한 API 호출 함수 사용) - submission.ts
  3. 쿼리 옵션과 useQuery를 사용하여 리팩토링 진행

closes TAS-1090

Before submitting the PR, please make sure you do the following

Copy link

@eunnbi eunnbi merged commit 53aae12 into main Jan 5, 2025
8 checks passed
@eunnbi eunnbi deleted the t1090-refactor-MySubmission branch January 5, 2025 05:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done ✔️
Development

Successfully merging this pull request may close these issues.

2 participants