MCPcopy Index your code
hub / github.com/TanStack/query / predicate

Function predicate

packages/query-core/src/__tests__/utils.test-d.tsx:12–15  ·  view source on GitHub ↗
(query)

Source from the content-addressed store, hash-verified

10
11 const filters: QueryFilters<DataTag<QueryKey, TData, TError>> = {
12 predicate(query) {
13 expectTypeOf(query.setData({ a: 1, b: '1' })).toEqualTypeOf<unknown>()
14 return true
15 },
16 queryKey: ['key'] as DataTag<undefined, TData, TError>,
17 }
18

Callers 2

matchQueryFunction · 0.50
matchMutationFunction · 0.50

Calls 1

setDataMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…