T
TanStack•11mo ago
correct-apricot

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.
2 Replies
optimistic-gold
optimistic-gold•11mo ago
why didn't it work?
correct-apricot
correct-apricotOP•11mo ago
It did work now. There was an issue elsewhere. Thanks @TkDodo 🔮 .

Did you find this page helpful?