MCPcopy Create free account
hub / github.com/TanStack/query / matchesData

Function matchesData

packages/query-devtools/src/Devtools.tsx:137–138  ·  view source on GitHub ↗
(data: unknown, term: string)

Source from the content-addressed store, hash-verified

135 * @returns Whether the data matches.
136 */
137const matchesData = (data: unknown, term: string) =>
138 data !== undefined && getDataSearchText(data)!.includes(term)
139
140/**
141 * Builds data search texts for a few milliseconds per task, so filtering by data doesn't block

Callers 2

ContentViewFunction · 0.85
matchingSearchFunction · 0.85

Calls 1

getDataSearchTextFunction · 0.85

Tested by

no test coverage detected