useIsFetching
import { useIsFetching } from '@tanstack/react-query'
// 有多少个查询正在获取数据?
const isFetching = useIsFetching()
// 有多少个以 'posts' 为前缀的查询正在获取数据?
const isFetchingPosts = useIsFetching({ queryKey: ['posts'] })最后更新于
import { useIsFetching } from '@tanstack/react-query'
// 有多少个查询正在获取数据?
const isFetching = useIsFetching()
// 有多少个以 'posts' 为前缀的查询正在获取数据?
const isFetchingPosts = useIsFetching({ queryKey: ['posts'] })最后更新于