TanStackT
TanStackโ€ข11mo ago
cold-orange

Is there a built-in way to refetch/invalidate queries based on a mutation being successful?

Hi ๐Ÿ‘‹

One condition: while being inside the query's hook context.
I.e. I don't want to use invalidateQueries for all the potential queries that might "subscribe" to the data the mutation has just edited, but the other way around.
Was this page helpful?