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.
🤠 개요
tanstack-query v5로 변경
💫 설명
가존에 tanstack query v4를 썼는데 suspense쿼리 및 쿼리 옵션 사용 통일을 위해 v5로 변경했어요.
원래는 위의 방식도 사용 가능했는데 v5에서는 반드시 객체 방식을 사용해야해요.
따라서 기존에 위 방식으로 적용되어 있는 쿼리를 전부 변경했어요.
또 staleTime이 gcTime으로 이름이 변경되었어요.
그리고 tanstack query dev tools을 dev dependency로 옮겼어요.
쿼리키, 함수 관리 파일은 다른 작업하면서 함께 올릴게요!
📷 스크린샷 (Optional)