Resolve mutation after invalidating queries
Is it possible to have
isLoading flag still equals to true, when mutation completed, but invalidatingQueries is in progress?2 Replies
vicious-gold•3y ago
that's what your code is doing: if you return the promise from
invalidateQueries in onSuccess, the mutation will await it before it completes its loading statecorrect-apricotOP•3y ago
great, thanks!