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
fair-roseOP•15mo ago
I think this question also applied to queries.
rising-crimson•15mo ago
There are some hooks to help with this.
useIsFetching, useIsMutating, and useMutationStatefirm-tan•15mo ago
I would move the usemutation call into the Row component.