useIsMutating is an optional hook that returns the number of mutations that your application is currently in a pending state with (useful for app-wide loading indicators).
import { useIsMutating } from '@tanstack/vue-query'
// How many mutations are pending?
const isMutating = useIsMutating()
// How many mutations matching the posts prefix are pending?
const isMutatingPosts = useIsMutating({ mutationKey: ['posts'] })Options
Returns