TanStack
API Reference

RefetchQueryFilters

Defined in: packages/query-core/src/types.ts:910

The filters of queryClient.refetchQueries, which select the queries to refetch.

Extends

Type Parameters

TQueryKey

TQueryKey extends QueryKey = QueryKey

Properties

PropertyTypeDefault valueDescription
exact?booleanundefinedMatch query key exactly
fetchStatus?"fetching" | "paused" | "idle"undefinedInclude queries matching their fetchStatus
predicate?(query: Query) => booleanundefinedInclude queries matching this predicate function
queryKey?TQueryKey | TuplePrefixes<TQueryKey>undefinedInclude queries matching this query key
stale?booleanundefinedInclude or exclude stale queries
type?QueryTypeFilter'all'Filter to active queries, inactive queries or all queries