T
TanStack4y ago
genetic-orange

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
foreign-sapphire4y ago
no, I don't think there is anything like that. what problem are you trying to solve?
genetic-orange
genetic-orangeOP4y 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
foreign-sapphire4y ago
sounds like you want to console.time inside the queryFn ?
genetic-orange
genetic-orangeOP4y ago
ah, I didn't know I can do that. I'm gonna try that out, thanks

Did you find this page helpful?