TanStackT
TanStack11mo ago
6 replies
urgent-maroon

Missing context type in mutation callbacks

I would like to invalidate a query in onSuccess, and the docs claim the third argument is a context, but actually it doesn't exist (see screenshot).
How do I really get access to the query client to do invalidation in this onSuccess?
image.png
Was this page helpful?