I don't know if the creators of react-query have updated the library but , I can't seem to be able to access setQueryData from queryCache nor can I import queryCache from react-query .
I looked at the docs and it looks like its queryCache that is now importable from react-query , and this is how its used :
import {QueryCache,useMutation} from "react-query"
const queryCache= new QueryCache({
onError:err=>console.log(err)
})
//but now thsi only has these 4 functions
//queryCache.find
//queryCache.findAll
//queryCache.subscribe
//queryCache.clear
is these something I'm missing here because I've been following some tutorials and they're using setQueryData