Defined in: packages/query-core/src/utils.ts:63
Filters used to select mutations, for example in mutationCache.findAll or queryClient.isMutating. All provided filters must match; filters that are left unspecified are ignored.
TData = unknown
TError = DefaultError
TVariables = unknown
TOnMutateResult = unknown
| Property | Type | Description |
|---|---|---|
| exact? | boolean | Match mutation key exactly |
| mutationKey? | readonly unknown[] | Include mutations matching this mutation key |
| predicate? | (mutation: Mutation<TData, TError, TVariables, TOnMutateResult>) => boolean | Include mutations matching this predicate function |
| status? | "error" | "pending" | "success" | "idle" | Filter by mutation status |