Callback or a status for query refetching?
Is there a callback or a network status for when a query is refetched after the invalidation of its query? I'm hoping to do some side effects when a query refetches after a mutation invalidates its query
4 Replies
foreign-sapphire•4y ago
no, I don't think there is anything like that. what problem are you trying to solve?
genetic-orangeOP•4y ago
I was more just trying to see how long it takes for refetch to occur after invalidation in my case. I'm trying to debug why it's taking a while and I can't really figure it out.
foreign-sapphire•4y ago
sounds like you want to
console.time inside the queryFn ?genetic-orangeOP•4y ago
ah, I didn't know I can do that. I'm gonna try that out, thanks