本页还没有译文
本页 6 段还没译成Português (BR),下面显示的是英文原文。useIsMutating
还没翻译译自英文(tanstack.com)本页 6 段都还没译
useIsMutating is an optional hook that returns the number of mutations that your application is fetching (useful for app-wide loading indicators).
import { useIsMutating } from 'react-query'
// How many mutations are fetching?
const isMutating = useIsMutating()
// How many mutations matching the posts prefix are fetching?
const isMutatingPosts = useIsMutating(['posts'])Options
mutationKey?: string | unknown[]filters?: MutationFilters: Mutation Filters
Returns
isMutating: number- Will be the
numberof the mutations that your application is currently fetching.
- Will be the
AI 翻译查看英文原文