Chisom Oguibe
Chisom Oguibe2d ago

Track mutation status in other react components?

Is there a way to check a mutation isPending in another component from the on it was called in? I can see the useUtils providers a isMutating() function. But I tested and it doesn't seem to be changing. This is v11
1 Reply
BeBoRE
BeBoRE2d ago
Pretty sure you can use useIsMutating from @tanstack/react-query And then pass the queryKey or pathKey

Did you find this page helpful?