react-query를 이해하는 몇가지 지식과 질문들
전제 지식들 staleTime : 마운트 되어 있는 시점에서 데이터가 구식인지 판단함. cacheTime : 언마운트된 후 어느 시점까지 메모리에 데이터를 저장하여 캐싱할 것인지를 결정함. refetching의 조건 New instances of the query mount 작동 되는 경우 : query key에 react state를 주고, state가 바뀌면 다시 fetch The window is refocused 작동 되는 경우 : 유저가 다른 작업하다가 다시 typed에 돌아오면 다시 fetch The network is reconnected. 작동 되는 경우 : 네트워크가 끊겼다가 다시 연결되면 fetch됨 The query is optionally configured with a refetc..