How to track multiple mutation invocation loading state ?
is there a way to track isLoading for each row correctly, and make it persist correctly even the mutation is triggered again multiple times ?
3 Replies
protestant-coralOP•13mo ago
I think this question also applied to queries.
stormy-gold•13mo ago
There are some hooks to help with this.
useIsFetching
, useIsMutating
, and useMutationState
metropolitan-bronze•13mo ago
I would move the usemutation call into the Row component.