트러블슈팅
react-query: Type 'string[]' has no properties in common with type 'InvalidateQueryFilters'
invalidateQueries에 쿼리 키 배열을 그대로 넘기면 ts(2559) 타입 에러가 난다. v5에서 인자 형태가 객체로 바뀌었기 때문이며, queryKey 속성을 가진 객체로 감싸면 해결된다.
#react-query#tanstack-query#typescript#troubleshooting