TanStackT
TanStack13mo ago
2 replies
specific-silver

Is it possible to Await multiple query invalidation to keep mutation pending

Currently its possible to await a single query invalidation call by returning the promise from invalidation to keep the mutation state isLoading to true.
Lets say a mutation updates both list and detail queries. Is it possible to await both invalidation and also invoking them in parallel. Wrapping them in Promise.all([invalidate-list, invalidate-detail]) did not work.
Was this page helpful?