TanStackT
TanStack2mo ago
4 replies
technical-ivory

How do I trace which queries get invalidated by a mutation?

Hi folks, I’m a beginner with TanStack Query and I often find myself unsure whether a query was actually invalidated after a mutation. Is there a way to see when a mutation runs and which query keys it invalidates? If there’s no error, I don’t see anything about this in the React Query Devtools either. How can I check which queries a mutation invalidates?
Was this page helpful?