Replies: 1 comment 1 reply
-
|
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
queryKey에서 id 타입을 통일해두어야 나중에 변경사항이 생겨서 invalidateQueries를 호출할 때 제대로 동작합니다.
fetch 진행할 때 queryKey에 넣을 id 타입을 논의해보면 좋을 것 같아요!
(지금은 일일이 fetch 코드를 확인하고, 그에 맞는 타입을 invalidate 해주어야합니다.
Beta Was this translation helpful? Give feedback.
All reactions