-
Notifications
You must be signed in to change notification settings - Fork 0
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
Process/signin process #26
Conversation
queryClient.clear() | ||
await refetch() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 부분은 queryClient를 clear 하는 것 보다는, 명시적으로 특정 query의 query key를 가져와서 invalidateQueries를 해주는게 좋습니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아하 queryClient.clear()로 하면 모든 쿼리를 다시 실행하게 된다는 부분에 있어 안좋은 부분이 있겠네요.
실수했네요.. ㅠ
해당 부분 invalidateQueries로 변경하여 보았습니답
2da53b6
177ca7d
to
cd75d80
Compare
|
작업 내용
추가된 사항
수정한 사항
시도하본 요소