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: staleTime제거 #383

Merged
merged 1 commit into from
Sep 24, 2024
Merged

refactor: staleTime제거 #383

merged 1 commit into from
Sep 24, 2024

Conversation

ChoiWonBeen
Copy link
Member

What is this PR? 🔍

queryClient에 초기값으로 지정한 staleTime을 제거합니다. 다른 초기값과 동일한 옵션들도 제거합니다.

Changes 📝

BCSDLab/KOIN_WEB_RECODE#469 PR과 동일합니다

Precaution

사이드이펙이 있을 수 있습니다. 기능을 한번씩은 수행해보며 경험을 체크하는게 좋아보입니다

✔️ Please check if the PR fulfills these requirements

  • It's submitted to the correct branch, not the develop branch unconditionally?
  • If on a hotfix branch, ensure it targets main?
  • There are no warning message when you run yarn lint

Copy link
Contributor

@junghaesung79 junghaesung79 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

블로그 감명 깊게 읽었습니다. 개인적으로도 키워드 정리 해봤구요. 고생하셨습니다!

Copy link

@D0Dam D0Dam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BCSDLab/KOIN_WEB_RECODE#469 (review)

초기에 staleTime 왜 줬었죠? retry: false 도 주었던 이유를 모르겠네요..
이번 블로그와 함께 한번 default option이랑 staleTime을 정리한듯 하군요. 항상 고생이 많으십니다 (꾸벅)

Copy link
Contributor

@haejinyun haejinyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이번에 저도 다양하게 react-query를 살펴보고 쿼리 키를 통한 데이터 캐싱 등에 대해서 다시 공부를 해보았는데 블로그 글 많이 도움 되었습니다. swr에 대해 다시 공부해 볼 수 있는 기회가 되었습니다! 수고 하셨습니다

@MinGu-Jeong MinGu-Jeong merged commit bd336a9 into develop Sep 24, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants