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