T
TanStack4y ago
genetic-orange

Is there an equivalent of getQueryState for getting the state of a mutation?

Hi everyone, I have a mutation that is executed in component A and I want to get the state of that mutation in another component? Is this possible with React Query? It looks like this can be achieved with queries but not mutations?
1 Reply
genetic-orange
genetic-orangeOP4y ago
useIsMutating | TanStack Query Docs
useIsMutating is an optional hook that returns the number of mutations that your application is fetching (useful for app-wide loading indicators). `tsx

Did you find this page helpful?