T
TanStack14mo ago
foreign-sapphire

Mutation isLoading including query invalidation?

Hey, hoping for a way to get isLoading on a mutation to also cover the query invalidation we do on success? Without this, the UI becomes janky as the action appears to complete but refreshed data doesn't arrive until another network round trip?
1 Reply
rare-sapphire
rare-sapphire14mo ago
Return or await invalidation in onSuccess

Did you find this page helpful?